Christoph Berg b362164b74 Don't call SPI_finish() when erroring out
SPI_connect() opens a new memory context, which is then destroyed by
SPI_finish(). Since we are invoking quote_qualified_identifier()
inbetween, which pallocs its result in that memory context, we cannot
use "formats" in the error messages because that pointer has already
been freed by then. Fix by dropping all SPI_finish() calls in paths that
elog(ERROR) which do handle the memory cleanup anyway.
2022-05-25 14:50:17 +02:00
..
2022-05-10 13:43:33 +02:00
2022-02-28 11:57:18 +01:00
2018-08-21 17:16:10 +02:00
2022-05-10 13:43:33 +02:00
2022-03-30 23:42:21 +02:00
2022-02-08 09:55:39 +01:00
2022-02-08 09:55:39 +01:00
2022-02-28 20:55:59 +01:00