pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Use the properly transformed RangeVar for expandTableLikeClause(
7+ messages / 1 participants
[nested] [flat]

* pgsql: Use the properly transformed RangeVar for expandTableLikeClause(
@ 2020-09-13 16:52  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 7+ messages in thread

From: Tom Lane @ 2020-09-13 16:52 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Use the properly transformed RangeVar for expandTableLikeClause().

transformCreateStmt() adjusts the transformed statement's RangeVar
to specify the target schema explicitly, for the express reason
of making sure that auxiliary statements derived by parse
transformation operate on the right table.  But the refactoring
I did in commit 502898192 got this wrong and passed the untransformed
RangeVar to expandTableLikeClause().  This could lead to assertion
failures or weird misbehavior if the wrong table was accessed.

Per report from Alexander Lakhin.  Like the previous patch, back-patch
to all supported branches.

Discussion: https://postgr.es/m/05051f9d-b32b-cb35-6735-0e9f2ab86b5f@gmail.com

Branch
------
REL_10_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/783a21eff37ec2cbe44b6e88aa4edb15a151155e

Modified Files
--------------
src/backend/tcop/utility.c                      | 23 +++++++++++++++++------
src/test/regress/expected/create_table_like.out | 18 ++++++++++++++++++
src/test/regress/sql/create_table_like.sql      |  5 +++++
3 files changed, 40 insertions(+), 6 deletions(-)



^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* pgsql: Use the properly transformed RangeVar for expandTableLikeClause(
@ 2020-09-13 16:52  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 7+ messages in thread

From: Tom Lane @ 2020-09-13 16:52 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Use the properly transformed RangeVar for expandTableLikeClause().

transformCreateStmt() adjusts the transformed statement's RangeVar
to specify the target schema explicitly, for the express reason
of making sure that auxiliary statements derived by parse
transformation operate on the right table.  But the refactoring
I did in commit 502898192 got this wrong and passed the untransformed
RangeVar to expandTableLikeClause().  This could lead to assertion
failures or weird misbehavior if the wrong table was accessed.

Per report from Alexander Lakhin.  Like the previous patch, back-patch
to all supported branches.

Discussion: https://postgr.es/m/05051f9d-b32b-cb35-6735-0e9f2ab86b5f@gmail.com

Branch
------
REL9_5_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/86b8ef139457d10620d313ada91c497e1e522493

Modified Files
--------------
src/backend/tcop/utility.c                      | 23 +++++++++++++++++------
src/test/regress/expected/create_table_like.out | 16 ++++++++++++++++
src/test/regress/sql/create_table_like.sql      |  5 +++++
3 files changed, 38 insertions(+), 6 deletions(-)



^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* pgsql: Use the properly transformed RangeVar for expandTableLikeClause(
@ 2020-09-13 16:52  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 7+ messages in thread

From: Tom Lane @ 2020-09-13 16:52 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Use the properly transformed RangeVar for expandTableLikeClause().

transformCreateStmt() adjusts the transformed statement's RangeVar
to specify the target schema explicitly, for the express reason
of making sure that auxiliary statements derived by parse
transformation operate on the right table.  But the refactoring
I did in commit 502898192 got this wrong and passed the untransformed
RangeVar to expandTableLikeClause().  This could lead to assertion
failures or weird misbehavior if the wrong table was accessed.

Per report from Alexander Lakhin.  Like the previous patch, back-patch
to all supported branches.

Discussion: https://postgr.es/m/05051f9d-b32b-cb35-6735-0e9f2ab86b5f@gmail.com

Branch
------
REL_12_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/1371a1e4161a25a128b666109ac5a9d449da982a

Modified Files
--------------
src/backend/tcop/utility.c                      | 23 +++++++++++++++++------
src/test/regress/expected/create_table_like.out | 18 ++++++++++++++++++
src/test/regress/sql/create_table_like.sql      |  5 +++++
3 files changed, 40 insertions(+), 6 deletions(-)



^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* pgsql: Use the properly transformed RangeVar for expandTableLikeClause(
@ 2020-09-13 16:52  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 7+ messages in thread

From: Tom Lane @ 2020-09-13 16:52 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Use the properly transformed RangeVar for expandTableLikeClause().

transformCreateStmt() adjusts the transformed statement's RangeVar
to specify the target schema explicitly, for the express reason
of making sure that auxiliary statements derived by parse
transformation operate on the right table.  But the refactoring
I did in commit 502898192 got this wrong and passed the untransformed
RangeVar to expandTableLikeClause().  This could lead to assertion
failures or weird misbehavior if the wrong table was accessed.

Per report from Alexander Lakhin.  Like the previous patch, back-patch
to all supported branches.

Discussion: https://postgr.es/m/05051f9d-b32b-cb35-6735-0e9f2ab86b5f@gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/19f5a37b9fc48a12c77edafb732543875da2f4a3

Modified Files
--------------
src/backend/tcop/utility.c                      | 23 +++++++++++++++++------
src/test/regress/expected/create_table_like.out | 18 ++++++++++++++++++
src/test/regress/sql/create_table_like.sql      |  5 +++++
3 files changed, 40 insertions(+), 6 deletions(-)



^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* pgsql: Use the properly transformed RangeVar for expandTableLikeClause(
@ 2020-09-13 16:52  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 7+ messages in thread

From: Tom Lane @ 2020-09-13 16:52 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Use the properly transformed RangeVar for expandTableLikeClause().

transformCreateStmt() adjusts the transformed statement's RangeVar
to specify the target schema explicitly, for the express reason
of making sure that auxiliary statements derived by parse
transformation operate on the right table.  But the refactoring
I did in commit 502898192 got this wrong and passed the untransformed
RangeVar to expandTableLikeClause().  This could lead to assertion
failures or weird misbehavior if the wrong table was accessed.

Per report from Alexander Lakhin.  Like the previous patch, back-patch
to all supported branches.

Discussion: https://postgr.es/m/05051f9d-b32b-cb35-6735-0e9f2ab86b5f@gmail.com

Branch
------
REL_13_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/b380484a850b6bf7d9fc0d85c555a2366e38451f

Modified Files
--------------
src/backend/tcop/utility.c                      | 23 +++++++++++++++++------
src/test/regress/expected/create_table_like.out | 18 ++++++++++++++++++
src/test/regress/sql/create_table_like.sql      |  5 +++++
3 files changed, 40 insertions(+), 6 deletions(-)



^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* pgsql: Use the properly transformed RangeVar for expandTableLikeClause(
@ 2020-09-13 16:52  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 7+ messages in thread

From: Tom Lane @ 2020-09-13 16:52 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Use the properly transformed RangeVar for expandTableLikeClause().

transformCreateStmt() adjusts the transformed statement's RangeVar
to specify the target schema explicitly, for the express reason
of making sure that auxiliary statements derived by parse
transformation operate on the right table.  But the refactoring
I did in commit 502898192 got this wrong and passed the untransformed
RangeVar to expandTableLikeClause().  This could lead to assertion
failures or weird misbehavior if the wrong table was accessed.

Per report from Alexander Lakhin.  Like the previous patch, back-patch
to all supported branches.

Discussion: https://postgr.es/m/05051f9d-b32b-cb35-6735-0e9f2ab86b5f@gmail.com

Branch
------
REL_11_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/f11210013d0205381e00d749e76c5dfd63527b5a

Modified Files
--------------
src/backend/tcop/utility.c                      | 23 +++++++++++++++++------
src/test/regress/expected/create_table_like.out | 18 ++++++++++++++++++
src/test/regress/sql/create_table_like.sql      |  5 +++++
3 files changed, 40 insertions(+), 6 deletions(-)



^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* pgsql: Use the properly transformed RangeVar for expandTableLikeClause(
@ 2020-09-13 16:52  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 7+ messages in thread

From: Tom Lane @ 2020-09-13 16:52 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Use the properly transformed RangeVar for expandTableLikeClause().

transformCreateStmt() adjusts the transformed statement's RangeVar
to specify the target schema explicitly, for the express reason
of making sure that auxiliary statements derived by parse
transformation operate on the right table.  But the refactoring
I did in commit 502898192 got this wrong and passed the untransformed
RangeVar to expandTableLikeClause().  This could lead to assertion
failures or weird misbehavior if the wrong table was accessed.

Per report from Alexander Lakhin.  Like the previous patch, back-patch
to all supported branches.

Discussion: https://postgr.es/m/05051f9d-b32b-cb35-6735-0e9f2ab86b5f@gmail.com

Branch
------
REL9_6_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/1a9c93ec3b9ae2766b60e97957d07028e2828796

Modified Files
--------------
src/backend/tcop/utility.c                      | 23 +++++++++++++++++------
src/test/regress/expected/create_table_like.out | 16 ++++++++++++++++
src/test/regress/sql/create_table_like.sql      |  5 +++++
3 files changed, 38 insertions(+), 6 deletions(-)



^ permalink  raw  reply  [nested|flat] 7+ messages in thread


end of thread, other threads:[~2020-09-13 16:52 UTC | newest]

Thread overview: 7+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2020-09-13 16:52 pgsql: Use the properly transformed RangeVar for expandTableLikeClause( Tom Lane <tgl@sss.pgh.pa.us>
2020-09-13 16:52 pgsql: Use the properly transformed RangeVar for expandTableLikeClause( Tom Lane <tgl@sss.pgh.pa.us>
2020-09-13 16:52 pgsql: Use the properly transformed RangeVar for expandTableLikeClause( Tom Lane <tgl@sss.pgh.pa.us>
2020-09-13 16:52 pgsql: Use the properly transformed RangeVar for expandTableLikeClause( Tom Lane <tgl@sss.pgh.pa.us>
2020-09-13 16:52 pgsql: Use the properly transformed RangeVar for expandTableLikeClause( Tom Lane <tgl@sss.pgh.pa.us>
2020-09-13 16:52 pgsql: Use the properly transformed RangeVar for expandTableLikeClause( Tom Lane <tgl@sss.pgh.pa.us>
2020-09-13 16:52 pgsql: Use the properly transformed RangeVar for expandTableLikeClause( 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