pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Don't crash on reference to an un-available system column. 3+ messages / 1 participants [nested] [flat]
* pgsql: Don't crash on reference to an un-available system column. @ 2021-04-22 21:31 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 3+ messages in thread From: Tom Lane @ 2021-04-22 21:31 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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 Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/d479d00285255d422a2b38f1cfaa35808968a08c Modified Files -------------- src/backend/executor/execTuples.c | 40 +++++++++++++++++++++++---- src/test/regress/expected/update.out | 53 ++++++++++++++++++++++++++++++++++++ src/test/regress/sql/update.sql | 32 ++++++++++++++++++++++ 3 files changed, 120 insertions(+), 5 deletions(-) ^ permalink raw reply [nested|flat] 3+ messages in thread
* pgsql: Don't crash on reference to an un-available system column. @ 2021-04-22 21:31 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 3+ messages in thread From: Tom Lane @ 2021-04-22 21:31 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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 Branch ------ REL_13_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/2602ee4689c7691196568c59656662acf3be4e87 Modified Files -------------- src/backend/executor/execTuples.c | 40 +++++++++++++++++++++++---- src/test/regress/expected/update.out | 53 ++++++++++++++++++++++++++++++++++++ src/test/regress/sql/update.sql | 32 ++++++++++++++++++++++ 3 files changed, 120 insertions(+), 5 deletions(-) ^ permalink raw reply [nested|flat] 3+ messages in thread
* pgsql: Don't crash on reference to an un-available system column. @ 2021-04-22 21:31 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 3+ messages in thread From: Tom Lane @ 2021-04-22 21:31 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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 Branch ------ REL_12_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/05ce4bf8b1d45cc55762fab627ea91d1ffbbdc03 Modified Files -------------- src/backend/executor/execTuples.c | 40 +++++++++++++++++++++++---- src/test/regress/expected/update.out | 53 ++++++++++++++++++++++++++++++++++++ src/test/regress/sql/update.sql | 32 ++++++++++++++++++++++ 3 files changed, 120 insertions(+), 5 deletions(-) ^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2021-04-22 21:31 UTC | newest] Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2021-04-22 21:31 pgsql: Don't crash on reference to an un-available system column. Tom Lane <tgl@sss.pgh.pa.us> 2021-04-22 21:31 pgsql: Don't crash on reference to an un-available system column. Tom Lane <tgl@sss.pgh.pa.us> 2021-04-22 21:31 pgsql: Don't crash on reference to an un-available system column. Tom Lane <tgl@sss.pgh.pa.us>
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox