pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Rethink the dependencies recorded for FieldSelect/FieldStore nod 7+ messages / 1 participants [nested] [flat]
* pgsql: Rethink the dependencies recorded for FieldSelect/FieldStore nod @ 2017-10-27 16:19 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 7+ messages in thread From: Tom Lane @ 2017-10-27 16:19 UTC (permalink / raw) To: pgsql-committers Rethink the dependencies recorded for FieldSelect/FieldStore nodes. On closer investigation, commits f3ea3e3e8 et al were a few bricks shy of a load. What we need is not so much to lock down the result type of a FieldSelect, as to lock down the existence of the column it's trying to extract. Otherwise, we can break it by dropping that column. The dependency on the result type is then held indirectly through the column, and doesn't need to be recorded explicitly. Out of paranoia, I left in the code to record a dependency on the result type, but it's used only if we can't identify the pg_class OID for the column. That shouldn't ever happen right now, AFAICS, but it seems possible that in future the input node could be marked as being of type RECORD rather than some specific composite type. Likewise for FieldStore. Like the previous patch, back-patch to all supported branches. Discussion: https://postgr.es/m/22571.1509064146@sss.pgh.pa.us Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/6784d7a1dc69d53b7f41eebf62bf7ffd63885294 Modified Files -------------- src/backend/catalog/dependency.c | 36 +++++++++++++++++++++++++------ src/test/regress/expected/alter_table.out | 17 +++++++++++++++ src/test/regress/sql/alter_table.sql | 8 +++++++ 3 files changed, 55 insertions(+), 6 deletions(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Rethink the dependencies recorded for FieldSelect/FieldStore nod @ 2017-10-27 16:19 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 7+ messages in thread From: Tom Lane @ 2017-10-27 16:19 UTC (permalink / raw) To: pgsql-committers Rethink the dependencies recorded for FieldSelect/FieldStore nodes. On closer investigation, commits f3ea3e3e8 et al were a few bricks shy of a load. What we need is not so much to lock down the result type of a FieldSelect, as to lock down the existence of the column it's trying to extract. Otherwise, we can break it by dropping that column. The dependency on the result type is then held indirectly through the column, and doesn't need to be recorded explicitly. Out of paranoia, I left in the code to record a dependency on the result type, but it's used only if we can't identify the pg_class OID for the column. That shouldn't ever happen right now, AFAICS, but it seems possible that in future the input node could be marked as being of type RECORD rather than some specific composite type. Likewise for FieldStore. Like the previous patch, back-patch to all supported branches. Discussion: https://postgr.es/m/22571.1509064146@sss.pgh.pa.us Branch ------ REL_10_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/8be1022425a395aa4d05b8032aeb9f6b128ea902 Modified Files -------------- src/backend/catalog/dependency.c | 36 +++++++++++++++++++++++++------ src/test/regress/expected/alter_table.out | 17 +++++++++++++++ src/test/regress/sql/alter_table.sql | 8 +++++++ 3 files changed, 55 insertions(+), 6 deletions(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Rethink the dependencies recorded for FieldSelect/FieldStore nod @ 2017-10-27 16:19 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 7+ messages in thread From: Tom Lane @ 2017-10-27 16:19 UTC (permalink / raw) To: pgsql-committers Rethink the dependencies recorded for FieldSelect/FieldStore nodes. On closer investigation, commits f3ea3e3e8 et al were a few bricks shy of a load. What we need is not so much to lock down the result type of a FieldSelect, as to lock down the existence of the column it's trying to extract. Otherwise, we can break it by dropping that column. The dependency on the result type is then held indirectly through the column, and doesn't need to be recorded explicitly. Out of paranoia, I left in the code to record a dependency on the result type, but it's used only if we can't identify the pg_class OID for the column. That shouldn't ever happen right now, AFAICS, but it seems possible that in future the input node could be marked as being of type RECORD rather than some specific composite type. Likewise for FieldStore. Like the previous patch, back-patch to all supported branches. Discussion: https://postgr.es/m/22571.1509064146@sss.pgh.pa.us Branch ------ REL9_6_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/cf0331a54c9b173f778ae09fbd30a432da247afc Modified Files -------------- src/backend/catalog/dependency.c | 36 +++++++++++++++++++++++++------ src/test/regress/expected/alter_table.out | 17 +++++++++++++++ src/test/regress/sql/alter_table.sql | 8 +++++++ 3 files changed, 55 insertions(+), 6 deletions(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Rethink the dependencies recorded for FieldSelect/FieldStore nod @ 2017-10-27 16:19 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 7+ messages in thread From: Tom Lane @ 2017-10-27 16:19 UTC (permalink / raw) To: pgsql-committers Rethink the dependencies recorded for FieldSelect/FieldStore nodes. On closer investigation, commits f3ea3e3e8 et al were a few bricks shy of a load. What we need is not so much to lock down the result type of a FieldSelect, as to lock down the existence of the column it's trying to extract. Otherwise, we can break it by dropping that column. The dependency on the result type is then held indirectly through the column, and doesn't need to be recorded explicitly. Out of paranoia, I left in the code to record a dependency on the result type, but it's used only if we can't identify the pg_class OID for the column. That shouldn't ever happen right now, AFAICS, but it seems possible that in future the input node could be marked as being of type RECORD rather than some specific composite type. Likewise for FieldStore. Like the previous patch, back-patch to all supported branches. Discussion: https://postgr.es/m/22571.1509064146@sss.pgh.pa.us Branch ------ REL9_5_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/37fb01cb04b4b1c6e7d0532cdb64cb730be119b2 Modified Files -------------- src/backend/catalog/dependency.c | 36 +++++++++++++++++++++++++------ src/test/regress/expected/alter_table.out | 17 +++++++++++++++ src/test/regress/sql/alter_table.sql | 8 +++++++ 3 files changed, 55 insertions(+), 6 deletions(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Rethink the dependencies recorded for FieldSelect/FieldStore nod @ 2017-10-27 16:19 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 7+ messages in thread From: Tom Lane @ 2017-10-27 16:19 UTC (permalink / raw) To: pgsql-committers Rethink the dependencies recorded for FieldSelect/FieldStore nodes. On closer investigation, commits f3ea3e3e8 et al were a few bricks shy of a load. What we need is not so much to lock down the result type of a FieldSelect, as to lock down the existence of the column it's trying to extract. Otherwise, we can break it by dropping that column. The dependency on the result type is then held indirectly through the column, and doesn't need to be recorded explicitly. Out of paranoia, I left in the code to record a dependency on the result type, but it's used only if we can't identify the pg_class OID for the column. That shouldn't ever happen right now, AFAICS, but it seems possible that in future the input node could be marked as being of type RECORD rather than some specific composite type. Likewise for FieldStore. Like the previous patch, back-patch to all supported branches. Discussion: https://postgr.es/m/22571.1509064146@sss.pgh.pa.us Branch ------ REL9_4_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/376ac922df7815bc88709090e3b70b7752e9a327 Modified Files -------------- src/backend/catalog/dependency.c | 36 +++++++++++++++++++++++++------ src/test/regress/expected/alter_table.out | 17 +++++++++++++++ src/test/regress/sql/alter_table.sql | 8 +++++++ 3 files changed, 55 insertions(+), 6 deletions(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Rethink the dependencies recorded for FieldSelect/FieldStore nod @ 2017-10-27 16:19 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 7+ messages in thread From: Tom Lane @ 2017-10-27 16:19 UTC (permalink / raw) To: pgsql-committers Rethink the dependencies recorded for FieldSelect/FieldStore nodes. On closer investigation, commits f3ea3e3e8 et al were a few bricks shy of a load. What we need is not so much to lock down the result type of a FieldSelect, as to lock down the existence of the column it's trying to extract. Otherwise, we can break it by dropping that column. The dependency on the result type is then held indirectly through the column, and doesn't need to be recorded explicitly. Out of paranoia, I left in the code to record a dependency on the result type, but it's used only if we can't identify the pg_class OID for the column. That shouldn't ever happen right now, AFAICS, but it seems possible that in future the input node could be marked as being of type RECORD rather than some specific composite type. Likewise for FieldStore. Like the previous patch, back-patch to all supported branches. Discussion: https://postgr.es/m/22571.1509064146@sss.pgh.pa.us Branch ------ REL9_3_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/be203c36a6e8c6b94230e884f6390a57b7e2387a Modified Files -------------- src/backend/catalog/dependency.c | 36 +++++++++++++++++++++++++------ src/test/regress/expected/alter_table.out | 17 +++++++++++++++ src/test/regress/sql/alter_table.sql | 8 +++++++ 3 files changed, 55 insertions(+), 6 deletions(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Rethink the dependencies recorded for FieldSelect/FieldStore nod @ 2017-10-27 16:19 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 7+ messages in thread From: Tom Lane @ 2017-10-27 16:19 UTC (permalink / raw) To: pgsql-committers Rethink the dependencies recorded for FieldSelect/FieldStore nodes. On closer investigation, commits f3ea3e3e8 et al were a few bricks shy of a load. What we need is not so much to lock down the result type of a FieldSelect, as to lock down the existence of the column it's trying to extract. Otherwise, we can break it by dropping that column. The dependency on the result type is then held indirectly through the column, and doesn't need to be recorded explicitly. Out of paranoia, I left in the code to record a dependency on the result type, but it's used only if we can't identify the pg_class OID for the column. That shouldn't ever happen right now, AFAICS, but it seems possible that in future the input node could be marked as being of type RECORD rather than some specific composite type. Likewise for FieldStore. Like the previous patch, back-patch to all supported branches. Discussion: https://postgr.es/m/22571.1509064146@sss.pgh.pa.us Branch ------ REL9_2_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/adcfa7bd16f4b256b0523bd2b4c35a1bc6e84199 Modified Files -------------- src/backend/catalog/dependency.c | 36 +++++++++++++++++++++++++------ src/test/regress/expected/alter_table.out | 17 +++++++++++++++ src/test/regress/sql/alter_table.sql | 8 +++++++ 3 files changed, 55 insertions(+), 6 deletions(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 7+ messages in thread
end of thread, other threads:[~2017-10-27 16:19 UTC | newest] Thread overview: 7+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2017-10-27 16:19 pgsql: Rethink the dependencies recorded for FieldSelect/FieldStore nod Tom Lane <tgl@sss.pgh.pa.us> 2017-10-27 16:19 pgsql: Rethink the dependencies recorded for FieldSelect/FieldStore nod Tom Lane <tgl@sss.pgh.pa.us> 2017-10-27 16:19 pgsql: Rethink the dependencies recorded for FieldSelect/FieldStore nod Tom Lane <tgl@sss.pgh.pa.us> 2017-10-27 16:19 pgsql: Rethink the dependencies recorded for FieldSelect/FieldStore nod Tom Lane <tgl@sss.pgh.pa.us> 2017-10-27 16:19 pgsql: Rethink the dependencies recorded for FieldSelect/FieldStore nod Tom Lane <tgl@sss.pgh.pa.us> 2017-10-27 16:19 pgsql: Rethink the dependencies recorded for FieldSelect/FieldStore nod Tom Lane <tgl@sss.pgh.pa.us> 2017-10-27 16:19 pgsql: Rethink the dependencies recorded for FieldSelect/FieldStore nod 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