diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2021-04-22 17:30:42 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2021-04-22 17:30:55 -0400 |
commit | d479d00285255d422a2b38f1cfaa35808968a08c (patch) | |
tree | 67f025eded5f4661bc496e9f87d3e3b3b628fb52 /contrib/postgres_fdw/postgres_fdw.c | |
parent | 197d33ccbe888fc84ae4e49bb241e88ea3c81f15 (diff) | |
download | postgresql-d479d00285255d422a2b38f1cfaa35808968a08c.tar.gz postgresql-d479d00285255d422a2b38f1cfaa35808968a08c.zip |
Don't crash on reference to an un-available system column.
Adopt a more consistent policy about what slot-type-specific
getsysattr functions should do when system attributes are not
available. To wit, they should all throw the same user-oriented
error, rather than variously crashing or emitting developer-oriented
messages.
This closes a identifiable problem in commits a71cfc56b and
3fb93103a (in v13 and v12), so back-patch into those branches,
along with a test case to try to ensure we don't break it again.
It is not known that any of the former crash cases are reachable
in HEAD, but this seems like a good safety improvement in any case.
Discussion: https://postgr.es/m/141051591267657@mail.yandex.ru
Diffstat (limited to 'contrib/postgres_fdw/postgres_fdw.c')
0 files changed, 0 insertions, 0 deletions