pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Remove an unsafe Assert, and explain join_clause_is_movable_into
5+ messages / 1 participants
[nested] [flat]

* pgsql: Remove an unsafe Assert, and explain join_clause_is_movable_into
@ 2015-07-28 17:21 Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 5+ messages in thread

From: Tom Lane @ 2015-07-28 17:21 UTC (permalink / raw)
  To: pgsql-committers

Remove an unsafe Assert, and explain join_clause_is_movable_into() better.

join_clause_is_movable_into() is approximate, in the sense that it might
sometimes return "false" when actually it would be valid to push the given
join clause down to the specified level.  This is okay ... but there was
an Assert in get_joinrel_parampathinfo() that's only safe if the answers
are always exact.  Comment out the Assert, and add a bunch of commentary
to clarify what's going on.

Per fuzz testing by Andreas Seltenreich.  The added regression test is
a pretty silly query, but it's based on his crasher example.

Back-patch to 9.2 where the faulty logic was introduced.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/95f4e59c3286671656aff7db45b322f14a7bb8cc

Modified Files
--------------
src/backend/optimizer/util/relnode.c      |    9 ++++++
src/backend/optimizer/util/restrictinfo.c |   39 ++++++++++++++++++-----
src/test/regress/expected/join.out        |   48 +++++++++++++++++++++++++++++
src/test/regress/sql/join.sql             |   26 ++++++++++++++++
4 files changed, 115 insertions(+), 7 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] 5+ messages in thread

* pgsql: Remove an unsafe Assert, and explain join_clause_is_movable_into
@ 2015-07-28 17:21 Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 5+ messages in thread

From: Tom Lane @ 2015-07-28 17:21 UTC (permalink / raw)
  To: pgsql-committers

Remove an unsafe Assert, and explain join_clause_is_movable_into() better.

join_clause_is_movable_into() is approximate, in the sense that it might
sometimes return "false" when actually it would be valid to push the given
join clause down to the specified level.  This is okay ... but there was
an Assert in get_joinrel_parampathinfo() that's only safe if the answers
are always exact.  Comment out the Assert, and add a bunch of commentary
to clarify what's going on.

Per fuzz testing by Andreas Seltenreich.  The added regression test is
a pretty silly query, but it's based on his crasher example.

Back-patch to 9.2 where the faulty logic was introduced.

Branch
------
REL9_5_STABLE

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

Modified Files
--------------
src/backend/optimizer/util/relnode.c      |    9 ++++++
src/backend/optimizer/util/restrictinfo.c |   39 ++++++++++++++++++-----
src/test/regress/expected/join.out        |   48 +++++++++++++++++++++++++++++
src/test/regress/sql/join.sql             |   26 ++++++++++++++++
4 files changed, 115 insertions(+), 7 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] 5+ messages in thread

* pgsql: Remove an unsafe Assert, and explain join_clause_is_movable_into
@ 2015-07-28 17:21 Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 5+ messages in thread

From: Tom Lane @ 2015-07-28 17:21 UTC (permalink / raw)
  To: pgsql-committers

Remove an unsafe Assert, and explain join_clause_is_movable_into() better.

join_clause_is_movable_into() is approximate, in the sense that it might
sometimes return "false" when actually it would be valid to push the given
join clause down to the specified level.  This is okay ... but there was
an Assert in get_joinrel_parampathinfo() that's only safe if the answers
are always exact.  Comment out the Assert, and add a bunch of commentary
to clarify what's going on.

Per fuzz testing by Andreas Seltenreich.  The added regression test is
a pretty silly query, but it's based on his crasher example.

Back-patch to 9.2 where the faulty logic was introduced.

Branch
------
REL9_4_STABLE

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

Modified Files
--------------
src/backend/optimizer/util/relnode.c      |    9 ++++++
src/backend/optimizer/util/restrictinfo.c |   39 ++++++++++++++++++-----
src/test/regress/expected/join.out        |   48 +++++++++++++++++++++++++++++
src/test/regress/sql/join.sql             |   27 ++++++++++++++++
4 files changed, 116 insertions(+), 7 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] 5+ messages in thread

* pgsql: Remove an unsafe Assert, and explain join_clause_is_movable_into
@ 2015-07-28 17:21 Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 5+ messages in thread

From: Tom Lane @ 2015-07-28 17:21 UTC (permalink / raw)
  To: pgsql-committers

Remove an unsafe Assert, and explain join_clause_is_movable_into() better.

join_clause_is_movable_into() is approximate, in the sense that it might
sometimes return "false" when actually it would be valid to push the given
join clause down to the specified level.  This is okay ... but there was
an Assert in get_joinrel_parampathinfo() that's only safe if the answers
are always exact.  Comment out the Assert, and add a bunch of commentary
to clarify what's going on.

Per fuzz testing by Andreas Seltenreich.  The added regression test is
a pretty silly query, but it's based on his crasher example.

Back-patch to 9.2 where the faulty logic was introduced.

Branch
------
REL9_3_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/03d7f3ba58590d5a6eed89604cc3e4912f458df4

Modified Files
--------------
src/backend/optimizer/util/relnode.c      |    9 ++++++
src/backend/optimizer/util/restrictinfo.c |   39 ++++++++++++++++++-----
src/test/regress/expected/join.out        |   48 +++++++++++++++++++++++++++++
src/test/regress/sql/join.sql             |   27 ++++++++++++++++
4 files changed, 116 insertions(+), 7 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] 5+ messages in thread

* pgsql: Remove an unsafe Assert, and explain join_clause_is_movable_into
@ 2015-07-28 17:21 Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 5+ messages in thread

From: Tom Lane @ 2015-07-28 17:21 UTC (permalink / raw)
  To: pgsql-committers

Remove an unsafe Assert, and explain join_clause_is_movable_into() better.

join_clause_is_movable_into() is approximate, in the sense that it might
sometimes return "false" when actually it would be valid to push the given
join clause down to the specified level.  This is okay ... but there was
an Assert in get_joinrel_parampathinfo() that's only safe if the answers
are always exact.  Comment out the Assert, and add a bunch of commentary
to clarify what's going on.

Per fuzz testing by Andreas Seltenreich.  The added regression test is
a pretty silly query, but it's based on his crasher example.

Back-patch to 9.2 where the faulty logic was introduced.

Branch
------
REL9_2_STABLE

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

Modified Files
--------------
src/backend/optimizer/util/relnode.c      |    9 ++++++
src/backend/optimizer/util/restrictinfo.c |   31 +++++++++++++++----
src/test/regress/expected/join.out        |   48 +++++++++++++++++++++++++++++
src/test/regress/sql/join.sql             |   27 ++++++++++++++++
4 files changed, 109 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] 5+ messages in thread


end of thread, other threads:[~2015-07-28 17:21 UTC | newest]

Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2015-07-28 17:21 pgsql: Remove an unsafe Assert, and explain join_clause_is_movable_into Tom Lane <tgl@sss.pgh.pa.us>
2015-07-28 17:21 pgsql: Remove an unsafe Assert, and explain join_clause_is_movable_into Tom Lane <tgl@sss.pgh.pa.us>
2015-07-28 17:21 pgsql: Remove an unsafe Assert, and explain join_clause_is_movable_into Tom Lane <tgl@sss.pgh.pa.us>
2015-07-28 17:21 pgsql: Remove an unsafe Assert, and explain join_clause_is_movable_into Tom Lane <tgl@sss.pgh.pa.us>
2015-07-28 17:21 pgsql: Remove an unsafe Assert, and explain join_clause_is_movable_into 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