Re: BUG #16340: lo_manage() crashs DB instance
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: william.crowell@openlogic.com
Cc: pgsql-bugs@lists.postgresql.org
Date: 2020-04-03T14:40:13Z
Lists: pgsql-bugs
PG Bug reporting form <noreply@postgresql.org> writes:
> PostgreSQL crashes if you do the following:
> $psql postgres -c 'create extension lo'
> CREATE EXTENSION
> $psql postgres -c 'select lo_manage()'
> server closed the connection unexpectedly
Huh, somebody was a bit too cute here:
if (!CALLED_AS_TRIGGER(fcinfo)) /* internal error */
elog(ERROR, "%s: not fired by trigger manager",
trigdata->tg_trigger->tgname);
Will fix, thanks for the report!
regards, tom lane
Commits
-
Fix bogus CALLED_AS_TRIGGER() defenses.
- d56657c35d9c 12.3 landed
- a9f821f48893 9.6.18 landed
- 85f0d4703809 10.13 landed
- 82bc56e63387 9.5.22 landed
- 7b1552283465 11.8 landed
- 6dd9f3577925 13.0 landed