pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Fix dumping of views that are just VALUES(...) but have column a
6+ messages / 1 participants
[nested] [flat]

* pgsql: Fix dumping of views that are just VALUES(...) but have column a
@ 2015-02-25 17:01 Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 6+ messages in thread

From: Tom Lane @ 2015-02-25 17:01 UTC (permalink / raw)
  To: pgsql-committers

Fix dumping of views that are just VALUES(...) but have column aliases.

The "simple" path for printing VALUES clauses doesn't work if we need
to attach nondefault column aliases, because there's noplace to do that
in the minimal VALUES() syntax.  So modify get_simple_values_rte() to
detect nondefault aliases and treat that as a non-simple case.  This
further exposes that the "non-simple" path never actually worked;
it didn't produce valid syntax.  Fix that too.  Per bug #12789 from
Curtis McEnroe, and analysis by Andrew Gierth.

Back-patch to all supported branches.  Before 9.3, this also requires
back-patching the part of commit 092d7ded29f36b0539046b23b81b9f0bf2d637f1
that created get_simple_values_rte() to begin with; inserting the extra
test into the old factorization of that logic would've been too messy.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/e9f1c01b71dcd11c86fc8516c06dae2e784b96fd

Modified Files
--------------
src/backend/utils/adt/ruleutils.c   |   39 ++++++++++++++++++++++---
src/test/regress/expected/rules.out |   54 +++++++++++++++++++++++++++++++++++
src/test/regress/sql/rules.sql      |   18 ++++++++++++
3 files changed, 107 insertions(+), 4 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 dumping of views that are just VALUES(...) but have column a
@ 2015-02-25 17:01 Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 6+ messages in thread

From: Tom Lane @ 2015-02-25 17:01 UTC (permalink / raw)
  To: pgsql-committers

Fix dumping of views that are just VALUES(...) but have column aliases.

The "simple" path for printing VALUES clauses doesn't work if we need
to attach nondefault column aliases, because there's noplace to do that
in the minimal VALUES() syntax.  So modify get_simple_values_rte() to
detect nondefault aliases and treat that as a non-simple case.  This
further exposes that the "non-simple" path never actually worked;
it didn't produce valid syntax.  Fix that too.  Per bug #12789 from
Curtis McEnroe, and analysis by Andrew Gierth.

Back-patch to all supported branches.  Before 9.3, this also requires
back-patching the part of commit 092d7ded29f36b0539046b23b81b9f0bf2d637f1
that created get_simple_values_rte() to begin with; inserting the extra
test into the old factorization of that logic would've been too messy.

Branch
------
REL9_4_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/2164a0de2929e39ffc462eb1e19d71f93621fdf1

Modified Files
--------------
src/backend/utils/adt/ruleutils.c   |   39 +++++++++++++++++++++++---
src/test/regress/expected/rules.out |   53 +++++++++++++++++++++++++++++++++++
src/test/regress/sql/rules.sql      |   16 +++++++++++
3 files changed, 104 insertions(+), 4 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 dumping of views that are just VALUES(...) but have column a
@ 2015-02-25 17:01 Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 6+ messages in thread

From: Tom Lane @ 2015-02-25 17:01 UTC (permalink / raw)
  To: pgsql-committers

Fix dumping of views that are just VALUES(...) but have column aliases.

The "simple" path for printing VALUES clauses doesn't work if we need
to attach nondefault column aliases, because there's noplace to do that
in the minimal VALUES() syntax.  So modify get_simple_values_rte() to
detect nondefault aliases and treat that as a non-simple case.  This
further exposes that the "non-simple" path never actually worked;
it didn't produce valid syntax.  Fix that too.  Per bug #12789 from
Curtis McEnroe, and analysis by Andrew Gierth.

Back-patch to all supported branches.  Before 9.3, this also requires
back-patching the part of commit 092d7ded29f36b0539046b23b81b9f0bf2d637f1
that created get_simple_values_rte() to begin with; inserting the extra
test into the old factorization of that logic would've been too messy.

Branch
------
REL9_3_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/f864fe07403e6d6b38a06490c01a62a41872899a

Modified Files
--------------
src/backend/utils/adt/ruleutils.c   |   39 +++++++++++++++++++++++---
src/test/regress/expected/rules.out |   53 +++++++++++++++++++++++++++++++++++
src/test/regress/sql/rules.sql      |   16 +++++++++++
3 files changed, 104 insertions(+), 4 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 dumping of views that are just VALUES(...) but have column a
@ 2015-02-25 17:01 Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 6+ messages in thread

From: Tom Lane @ 2015-02-25 17:01 UTC (permalink / raw)
  To: pgsql-committers

Fix dumping of views that are just VALUES(...) but have column aliases.

The "simple" path for printing VALUES clauses doesn't work if we need
to attach nondefault column aliases, because there's noplace to do that
in the minimal VALUES() syntax.  So modify get_simple_values_rte() to
detect nondefault aliases and treat that as a non-simple case.  This
further exposes that the "non-simple" path never actually worked;
it didn't produce valid syntax.  Fix that too.  Per bug #12789 from
Curtis McEnroe, and analysis by Andrew Gierth.

Back-patch to all supported branches.  Before 9.3, this also requires
back-patching the part of commit 092d7ded29f36b0539046b23b81b9f0bf2d637f1
that created get_simple_values_rte() to begin with; inserting the extra
test into the old factorization of that logic would've been too messy.

Branch
------
REL9_2_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/be8801e9c5f86122dacc8b037f0fab960dc0b196

Modified Files
--------------
src/backend/utils/adt/ruleutils.c   |   90 +++++++++++++++++++++++++++++------
src/test/regress/expected/rules.out |   50 +++++++++++++++++++
src/test/regress/sql/rules.sql      |   16 +++++++
3 files changed, 141 insertions(+), 15 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 dumping of views that are just VALUES(...) but have column a
@ 2015-02-25 17:01 Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 6+ messages in thread

From: Tom Lane @ 2015-02-25 17:01 UTC (permalink / raw)
  To: pgsql-committers

Fix dumping of views that are just VALUES(...) but have column aliases.

The "simple" path for printing VALUES clauses doesn't work if we need
to attach nondefault column aliases, because there's noplace to do that
in the minimal VALUES() syntax.  So modify get_simple_values_rte() to
detect nondefault aliases and treat that as a non-simple case.  This
further exposes that the "non-simple" path never actually worked;
it didn't produce valid syntax.  Fix that too.  Per bug #12789 from
Curtis McEnroe, and analysis by Andrew Gierth.

Back-patch to all supported branches.  Before 9.3, this also requires
back-patching the part of commit 092d7ded29f36b0539046b23b81b9f0bf2d637f1
that created get_simple_values_rte() to begin with; inserting the extra
test into the old factorization of that logic would've been too messy.

Branch
------
REL9_1_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/f7b41902a6737c682e6311455976f1205014cb8b

Modified Files
--------------
src/backend/utils/adt/ruleutils.c   |   90 +++++++++++++++++++++++++++++------
src/test/regress/expected/rules.out |   51 ++++++++++++++++++++
src/test/regress/sql/rules.sql      |   18 +++++++
3 files changed, 144 insertions(+), 15 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 dumping of views that are just VALUES(...) but have column a
@ 2015-02-25 17:01 Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 6+ messages in thread

From: Tom Lane @ 2015-02-25 17:01 UTC (permalink / raw)
  To: pgsql-committers

Fix dumping of views that are just VALUES(...) but have column aliases.

The "simple" path for printing VALUES clauses doesn't work if we need
to attach nondefault column aliases, because there's noplace to do that
in the minimal VALUES() syntax.  So modify get_simple_values_rte() to
detect nondefault aliases and treat that as a non-simple case.  This
further exposes that the "non-simple" path never actually worked;
it didn't produce valid syntax.  Fix that too.  Per bug #12789 from
Curtis McEnroe, and analysis by Andrew Gierth.

Back-patch to all supported branches.  Before 9.3, this also requires
back-patching the part of commit 092d7ded29f36b0539046b23b81b9f0bf2d637f1
that created get_simple_values_rte() to begin with; inserting the extra
test into the old factorization of that logic would've been too messy.

Branch
------
REL9_0_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/7a501bcbfc64d9e66fa6e83ed57b1804203da3e3

Modified Files
--------------
src/backend/utils/adt/ruleutils.c   |   90 +++++++++++++++++++++++++++++------
src/test/regress/expected/rules.out |   51 ++++++++++++++++++++
src/test/regress/sql/rules.sql      |   18 +++++++
3 files changed, 144 insertions(+), 15 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:[~2015-02-25 17:01 UTC | newest]

Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2015-02-25 17:01 pgsql: Fix dumping of views that are just VALUES(...) but have column a Tom Lane <tgl@sss.pgh.pa.us>
2015-02-25 17:01 pgsql: Fix dumping of views that are just VALUES(...) but have column a Tom Lane <tgl@sss.pgh.pa.us>
2015-02-25 17:01 pgsql: Fix dumping of views that are just VALUES(...) but have column a Tom Lane <tgl@sss.pgh.pa.us>
2015-02-25 17:01 pgsql: Fix dumping of views that are just VALUES(...) but have column a Tom Lane <tgl@sss.pgh.pa.us>
2015-02-25 17:01 pgsql: Fix dumping of views that are just VALUES(...) but have column a Tom Lane <tgl@sss.pgh.pa.us>
2015-02-25 17:01 pgsql: Fix dumping of views that are just VALUES(...) but have column a 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