pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Propagate CTE property flags when copying a CTE list into a rule
7+ messages / 1 participants
[nested] [flat]

* pgsql: Propagate CTE property flags when copying a CTE list into a rule
@ 2021-02-07 00:28  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 7+ messages in thread

From: Tom Lane @ 2021-02-07 00:28 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Propagate CTE property flags when copying a CTE list into a rule.

rewriteRuleAction() neglected this step, although it was careful to
propagate other similar flags such as hasSubLinks or hasRowSecurity.
Omitting to transfer hasRecursive is just cosmetic at the moment,
but omitting hasModifyingCTE is a live bug, since the executor
certainly looks at that.

The proposed test case only fails back to v10, but since the executor
examines hasModifyingCTE in 9.x as well, I suspect that a test case
could be devised that fails in older branches.  Given the nearness
of the release deadline, though, I'm not going to spend time looking
for a better test.

Report and patch by Greg Nancarrow, cosmetic changes by me

Discussion: https://postgr.es/m/CAJcOf-fAdj=nDKMsRhQzndm-O13NY4dL6xGcEvdX5Xvbbi0V7g@mail.gmail.com

Branch
------
REL9_5_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/4384eccb15495960194a4a9dc1e2861f612f3ee5

Modified Files
--------------
src/backend/rewrite/rewriteHandler.c | 6 ++++++
1 file changed, 6 insertions(+)



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

* pgsql: Propagate CTE property flags when copying a CTE list into a rule
@ 2021-02-07 00:28  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 7+ messages in thread

From: Tom Lane @ 2021-02-07 00:28 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Propagate CTE property flags when copying a CTE list into a rule.

rewriteRuleAction() neglected this step, although it was careful to
propagate other similar flags such as hasSubLinks or hasRowSecurity.
Omitting to transfer hasRecursive is just cosmetic at the moment,
but omitting hasModifyingCTE is a live bug, since the executor
certainly looks at that.

The proposed test case only fails back to v10, but since the executor
examines hasModifyingCTE in 9.x as well, I suspect that a test case
could be devised that fails in older branches.  Given the nearness
of the release deadline, though, I'm not going to spend time looking
for a better test.

Report and patch by Greg Nancarrow, cosmetic changes by me

Discussion: https://postgr.es/m/CAJcOf-fAdj=nDKMsRhQzndm-O13NY4dL6xGcEvdX5Xvbbi0V7g@mail.gmail.com

Branch
------
REL9_6_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/01e3fe3275af6b6f4b246dae8b8d3c169b1e3f8c

Modified Files
--------------
src/backend/rewrite/rewriteHandler.c | 6 ++++++
1 file changed, 6 insertions(+)



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

* pgsql: Propagate CTE property flags when copying a CTE list into a rule
@ 2021-02-07 00:28  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 7+ messages in thread

From: Tom Lane @ 2021-02-07 00:28 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Propagate CTE property flags when copying a CTE list into a rule.

rewriteRuleAction() neglected this step, although it was careful to
propagate other similar flags such as hasSubLinks or hasRowSecurity.
Omitting to transfer hasRecursive is just cosmetic at the moment,
but omitting hasModifyingCTE is a live bug, since the executor
certainly looks at that.

The proposed test case only fails back to v10, but since the executor
examines hasModifyingCTE in 9.x as well, I suspect that a test case
could be devised that fails in older branches.  Given the nearness
of the release deadline, though, I'm not going to spend time looking
for a better test.

Report and patch by Greg Nancarrow, cosmetic changes by me

Discussion: https://postgr.es/m/CAJcOf-fAdj=nDKMsRhQzndm-O13NY4dL6xGcEvdX5Xvbbi0V7g@mail.gmail.com

Branch
------
REL_12_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/2a7664a79c1668f83a658209c10bad6ebdc34a6b

Modified Files
--------------
src/backend/rewrite/rewriteHandler.c |  6 ++++++
src/test/regress/expected/with.out   | 27 +++++++++++++++++++++++++++
src/test/regress/sql/with.sql        | 16 ++++++++++++++++
3 files changed, 49 insertions(+)



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

* pgsql: Propagate CTE property flags when copying a CTE list into a rule
@ 2021-02-07 00:28  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 7+ messages in thread

From: Tom Lane @ 2021-02-07 00:28 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Propagate CTE property flags when copying a CTE list into a rule.

rewriteRuleAction() neglected this step, although it was careful to
propagate other similar flags such as hasSubLinks or hasRowSecurity.
Omitting to transfer hasRecursive is just cosmetic at the moment,
but omitting hasModifyingCTE is a live bug, since the executor
certainly looks at that.

The proposed test case only fails back to v10, but since the executor
examines hasModifyingCTE in 9.x as well, I suspect that a test case
could be devised that fails in older branches.  Given the nearness
of the release deadline, though, I'm not going to spend time looking
for a better test.

Report and patch by Greg Nancarrow, cosmetic changes by me

Discussion: https://postgr.es/m/CAJcOf-fAdj=nDKMsRhQzndm-O13NY4dL6xGcEvdX5Xvbbi0V7g@mail.gmail.com

Branch
------
REL_10_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/56ff63cac94df2979ee7173c4b612db8f81492ae

Modified Files
--------------
src/backend/rewrite/rewriteHandler.c |  6 ++++++
src/test/regress/expected/with.out   | 27 +++++++++++++++++++++++++++
src/test/regress/sql/with.sql        | 16 ++++++++++++++++
3 files changed, 49 insertions(+)



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

* pgsql: Propagate CTE property flags when copying a CTE list into a rule
@ 2021-02-07 00:28  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 7+ messages in thread

From: Tom Lane @ 2021-02-07 00:28 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Propagate CTE property flags when copying a CTE list into a rule.

rewriteRuleAction() neglected this step, although it was careful to
propagate other similar flags such as hasSubLinks or hasRowSecurity.
Omitting to transfer hasRecursive is just cosmetic at the moment,
but omitting hasModifyingCTE is a live bug, since the executor
certainly looks at that.

The proposed test case only fails back to v10, but since the executor
examines hasModifyingCTE in 9.x as well, I suspect that a test case
could be devised that fails in older branches.  Given the nearness
of the release deadline, though, I'm not going to spend time looking
for a better test.

Report and patch by Greg Nancarrow, cosmetic changes by me

Discussion: https://postgr.es/m/CAJcOf-fAdj=nDKMsRhQzndm-O13NY4dL6xGcEvdX5Xvbbi0V7g@mail.gmail.com

Branch
------
REL_11_STABLE

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

Modified Files
--------------
src/backend/rewrite/rewriteHandler.c |  6 ++++++
src/test/regress/expected/with.out   | 27 +++++++++++++++++++++++++++
src/test/regress/sql/with.sql        | 16 ++++++++++++++++
3 files changed, 49 insertions(+)



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

* pgsql: Propagate CTE property flags when copying a CTE list into a rule
@ 2021-02-07 00:28  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 7+ messages in thread

From: Tom Lane @ 2021-02-07 00:28 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Propagate CTE property flags when copying a CTE list into a rule.

rewriteRuleAction() neglected this step, although it was careful to
propagate other similar flags such as hasSubLinks or hasRowSecurity.
Omitting to transfer hasRecursive is just cosmetic at the moment,
but omitting hasModifyingCTE is a live bug, since the executor
certainly looks at that.

The proposed test case only fails back to v10, but since the executor
examines hasModifyingCTE in 9.x as well, I suspect that a test case
could be devised that fails in older branches.  Given the nearness
of the release deadline, though, I'm not going to spend time looking
for a better test.

Report and patch by Greg Nancarrow, cosmetic changes by me

Discussion: https://postgr.es/m/CAJcOf-fAdj=nDKMsRhQzndm-O13NY4dL6xGcEvdX5Xvbbi0V7g@mail.gmail.com

Branch
------
REL_13_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/739375174ae8adfeee27a681a3dd64f51e46ac4c

Modified Files
--------------
src/backend/rewrite/rewriteHandler.c |  6 ++++++
src/test/regress/expected/with.out   | 27 +++++++++++++++++++++++++++
src/test/regress/sql/with.sql        | 16 ++++++++++++++++
3 files changed, 49 insertions(+)



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

* pgsql: Propagate CTE property flags when copying a CTE list into a rule
@ 2021-02-07 00:28  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 7+ messages in thread

From: Tom Lane @ 2021-02-07 00:28 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Propagate CTE property flags when copying a CTE list into a rule.

rewriteRuleAction() neglected this step, although it was careful to
propagate other similar flags such as hasSubLinks or hasRowSecurity.
Omitting to transfer hasRecursive is just cosmetic at the moment,
but omitting hasModifyingCTE is a live bug, since the executor
certainly looks at that.

The proposed test case only fails back to v10, but since the executor
examines hasModifyingCTE in 9.x as well, I suspect that a test case
could be devised that fails in older branches.  Given the nearness
of the release deadline, though, I'm not going to spend time looking
for a better test.

Report and patch by Greg Nancarrow, cosmetic changes by me

Discussion: https://postgr.es/m/CAJcOf-fAdj=nDKMsRhQzndm-O13NY4dL6xGcEvdX5Xvbbi0V7g@mail.gmail.com

Branch
------
master

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

Modified Files
--------------
src/backend/rewrite/rewriteHandler.c |  6 ++++++
src/test/regress/expected/with.out   | 27 +++++++++++++++++++++++++++
src/test/regress/sql/with.sql        | 16 ++++++++++++++++
3 files changed, 49 insertions(+)



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


end of thread, other threads:[~2021-02-07 00:28 UTC | newest]

Thread overview: 7+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2021-02-07 00:28 pgsql: Propagate CTE property flags when copying a CTE list into a rule Tom Lane <tgl@sss.pgh.pa.us>
2021-02-07 00:28 pgsql: Propagate CTE property flags when copying a CTE list into a rule Tom Lane <tgl@sss.pgh.pa.us>
2021-02-07 00:28 pgsql: Propagate CTE property flags when copying a CTE list into a rule Tom Lane <tgl@sss.pgh.pa.us>
2021-02-07 00:28 pgsql: Propagate CTE property flags when copying a CTE list into a rule Tom Lane <tgl@sss.pgh.pa.us>
2021-02-07 00:28 pgsql: Propagate CTE property flags when copying a CTE list into a rule Tom Lane <tgl@sss.pgh.pa.us>
2021-02-07 00:28 pgsql: Propagate CTE property flags when copying a CTE list into a rule Tom Lane <tgl@sss.pgh.pa.us>
2021-02-07 00:28 pgsql: Propagate CTE property flags when copying a CTE list into a rule 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