aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/gist
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2016-08-26 14:15:47 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2016-08-26 14:15:54 -0400
commit6e47c6cf7de30b9f6a6b31eb7d4af80039a16920 (patch)
tree0a1df8c4db2505c36413dfe43edecc8a205e9e24 /src/backend/access/gist
parent9dca62e9ff3db2f482c829884b24a425692a5a18 (diff)
downloadpostgresql-6e47c6cf7de30b9f6a6b31eb7d4af80039a16920.tar.gz
postgresql-6e47c6cf7de30b9f6a6b31eb7d4af80039a16920.zip
Fix assorted small bugs in ThrowErrorData().
Copy the palloc'd strings into the correct context, ie ErrorContext not wherever the source ErrorData is. This would be a large bug, except that it appears that all catchers of thrown errors do either EmitErrorReport or CopyErrorData before doing anything that would cause transient memory contexts to be cleaned up. Still, it's wrong and it will bite somebody someday. Fix failure to copy cursorpos and internalpos. Utter the appropriate incantations involving recursion_depth, so that we'll behave sanely if we get an error inside pstrdup. (In general, the body of this function ought to act like, eg, errdetail().) Per code reading induced by Jakob Egger's report.
Diffstat (limited to 'src/backend/access/gist')
0 files changed, 0 insertions, 0 deletions