pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Fix ruleutils.c for domain-over-array cases, too.
6+ messages / 1 participants
[nested] [flat]

* pgsql: Fix ruleutils.c for domain-over-array cases, too.
@ 2017-07-12 22:00 Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 6+ messages in thread

From: Tom Lane @ 2017-07-12 22:00 UTC (permalink / raw)
  To: pgsql-committers

Fix ruleutils.c for domain-over-array cases, too.

Further investigation shows that ruleutils isn't quite up to speed either
for cases where we have a domain-over-array: it needs to be prepared to
look past a CoerceToDomain at the top level of field and element
assignments, else it decompiles them incorrectly.  Potentially this would
result in failure to dump/reload a rule, if it looked like the one in the
new test case.  (I also added a test for EXPLAIN; that output isn't broken,
but clearly we need more test coverage here.)

Like commit b1cb32fb6, this bug is reachable in cases we already support,
so back-patch all the way.

Branch
------
master

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

Modified Files
--------------
src/backend/utils/adt/ruleutils.c    | 41 ++++++++++++++++++++++++++++++++----
src/test/regress/expected/domain.out | 41 ++++++++++++++++++++++++++++++------
src/test/regress/sql/domain.sql      | 11 +++++++++-
3 files changed, 81 insertions(+), 12 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] 6+ messages in thread

* pgsql: Fix ruleutils.c for domain-over-array cases, too.
@ 2017-07-12 22:00 Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 6+ messages in thread

From: Tom Lane @ 2017-07-12 22:00 UTC (permalink / raw)
  To: pgsql-committers

Fix ruleutils.c for domain-over-array cases, too.

Further investigation shows that ruleutils isn't quite up to speed either
for cases where we have a domain-over-array: it needs to be prepared to
look past a CoerceToDomain at the top level of field and element
assignments, else it decompiles them incorrectly.  Potentially this would
result in failure to dump/reload a rule, if it looked like the one in the
new test case.  (I also added a test for EXPLAIN; that output isn't broken,
but clearly we need more test coverage here.)

Like commit b1cb32fb6, this bug is reachable in cases we already support,
so back-patch all the way.

Branch
------
REL9_6_STABLE

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

Modified Files
--------------
src/backend/utils/adt/ruleutils.c    | 41 ++++++++++++++++++++++++++++++++----
src/test/regress/expected/domain.out | 41 ++++++++++++++++++++++++++++++------
src/test/regress/sql/domain.sql      | 11 +++++++++-
3 files changed, 81 insertions(+), 12 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] 6+ messages in thread

* pgsql: Fix ruleutils.c for domain-over-array cases, too.
@ 2017-07-12 22:00 Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 6+ messages in thread

From: Tom Lane @ 2017-07-12 22:00 UTC (permalink / raw)
  To: pgsql-committers

Fix ruleutils.c for domain-over-array cases, too.

Further investigation shows that ruleutils isn't quite up to speed either
for cases where we have a domain-over-array: it needs to be prepared to
look past a CoerceToDomain at the top level of field and element
assignments, else it decompiles them incorrectly.  Potentially this would
result in failure to dump/reload a rule, if it looked like the one in the
new test case.  (I also added a test for EXPLAIN; that output isn't broken,
but clearly we need more test coverage here.)

Like commit b1cb32fb6, this bug is reachable in cases we already support,
so back-patch all the way.

Branch
------
REL9_5_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/2346f1c10bcf069d72cbf431442d535fa9e18683

Modified Files
--------------
src/backend/utils/adt/ruleutils.c    | 40 ++++++++++++++++++++++++++++++++---
src/test/regress/expected/domain.out | 41 ++++++++++++++++++++++++++++++------
src/test/regress/sql/domain.sql      | 11 +++++++++-
3 files changed, 81 insertions(+), 11 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] 6+ messages in thread

* pgsql: Fix ruleutils.c for domain-over-array cases, too.
@ 2017-07-12 22:00 Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 6+ messages in thread

From: Tom Lane @ 2017-07-12 22:00 UTC (permalink / raw)
  To: pgsql-committers

Fix ruleutils.c for domain-over-array cases, too.

Further investigation shows that ruleutils isn't quite up to speed either
for cases where we have a domain-over-array: it needs to be prepared to
look past a CoerceToDomain at the top level of field and element
assignments, else it decompiles them incorrectly.  Potentially this would
result in failure to dump/reload a rule, if it looked like the one in the
new test case.  (I also added a test for EXPLAIN; that output isn't broken,
but clearly we need more test coverage here.)

Like commit b1cb32fb6, this bug is reachable in cases we already support,
so back-patch all the way.

Branch
------
REL9_4_STABLE

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

Modified Files
--------------
src/backend/utils/adt/ruleutils.c    | 25 +++++++++++++++++++++-
src/test/regress/expected/domain.out | 41 ++++++++++++++++++++++++++++++------
src/test/regress/sql/domain.sql      | 11 +++++++++-
3 files changed, 68 insertions(+), 9 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] 6+ messages in thread

* pgsql: Fix ruleutils.c for domain-over-array cases, too.
@ 2017-07-12 22:00 Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 6+ messages in thread

From: Tom Lane @ 2017-07-12 22:00 UTC (permalink / raw)
  To: pgsql-committers

Fix ruleutils.c for domain-over-array cases, too.

Further investigation shows that ruleutils isn't quite up to speed either
for cases where we have a domain-over-array: it needs to be prepared to
look past a CoerceToDomain at the top level of field and element
assignments, else it decompiles them incorrectly.  Potentially this would
result in failure to dump/reload a rule, if it looked like the one in the
new test case.  (I also added a test for EXPLAIN; that output isn't broken,
but clearly we need more test coverage here.)

Like commit b1cb32fb6, this bug is reachable in cases we already support,
so back-patch all the way.

Branch
------
REL9_3_STABLE

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

Modified Files
--------------
src/backend/utils/adt/ruleutils.c    | 25 ++++++++++++++++++++-
src/test/regress/expected/domain.out | 42 ++++++++++++++++++++++++++++++------
src/test/regress/sql/domain.sql      | 11 +++++++++-
3 files changed, 69 insertions(+), 9 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] 6+ messages in thread

* pgsql: Fix ruleutils.c for domain-over-array cases, too.
@ 2017-07-12 22:00 Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 6+ messages in thread

From: Tom Lane @ 2017-07-12 22:00 UTC (permalink / raw)
  To: pgsql-committers

Fix ruleutils.c for domain-over-array cases, too.

Further investigation shows that ruleutils isn't quite up to speed either
for cases where we have a domain-over-array: it needs to be prepared to
look past a CoerceToDomain at the top level of field and element
assignments, else it decompiles them incorrectly.  Potentially this would
result in failure to dump/reload a rule, if it looked like the one in the
new test case.  (I also added a test for EXPLAIN; that output isn't broken,
but clearly we need more test coverage here.)

Like commit b1cb32fb6, this bug is reachable in cases we already support,
so back-patch all the way.

Branch
------
REL9_2_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/75670ec373628378fac68fdf2748ffac18076321

Modified Files
--------------
src/backend/utils/adt/ruleutils.c    | 25 ++++++++++++++++++++-
src/test/regress/expected/domain.out | 42 ++++++++++++++++++++++++++++++------
src/test/regress/sql/domain.sql      | 11 +++++++++-
3 files changed, 69 insertions(+), 9 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] 6+ messages in thread


end of thread, other threads:[~2017-07-12 22:00 UTC | newest]

Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2017-07-12 22:00 pgsql: Fix ruleutils.c for domain-over-array cases, too. Tom Lane <tgl@sss.pgh.pa.us>
2017-07-12 22:00 pgsql: Fix ruleutils.c for domain-over-array cases, too. Tom Lane <tgl@sss.pgh.pa.us>
2017-07-12 22:00 pgsql: Fix ruleutils.c for domain-over-array cases, too. Tom Lane <tgl@sss.pgh.pa.us>
2017-07-12 22:00 pgsql: Fix ruleutils.c for domain-over-array cases, too. Tom Lane <tgl@sss.pgh.pa.us>
2017-07-12 22:00 pgsql: Fix ruleutils.c for domain-over-array cases, too. Tom Lane <tgl@sss.pgh.pa.us>
2017-07-12 22:00 pgsql: Fix ruleutils.c for domain-over-array cases, too. 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