pgsql-server/ oc/src/sgml/spi.sgml rc/backend/ ...
pgsql-server/ oc/src/sgml/spi.sgml rc/backend/ ...
От:
tgl@postgresql.org (Tom Lane)
Дата:
CVSROOT: /cvsroot Module name: pgsql-server Changes by: tgl@postgresql.org 03/01/21 17:06:12 Modified files: doc/src/sgml : spi.sgml src/backend/executor: spi.c src/backend/tcop: dest.c src/include/access: printtup.h src/pl/plpgsql/src: pl_exec.c Log message: Fix coredump problem in plpgsql's RETURN NEXT. When a SELECT INTO that's selecting into a RECORD variable returns zero rows, make it assign an all-nulls row to the RECORD; this is consistent with what happens when the SELECT INTO target is not a RECORD. In support of this, tweak the SPI code so that a valid tuple descriptor is returned even when a SPI select returns no rows.