pg.ddx.io pgsql-committers@postgresql.org mailing list archive
help / color / mirror / Atom feedpgsql: Refactor ON CONFLICT index inference parse tree representation.
3+ messages / 2 participants
[nested] [flat]
* pgsql: Refactor ON CONFLICT index inference parse tree representation.
@ 2015-05-19 21:20 Andres Freund <andres@anarazel.de>
0 siblings, 1 reply; 3+ messages in thread
From: Andres Freund @ 2015-05-19 21:20 UTC (permalink / raw)
To: pgsql-committers
Refactor ON CONFLICT index inference parse tree representation.
Defer lookup of opfamily and input type of a of a user specified opclass
until the optimizer selects among available unique indexes; and store
the opclass in the parse analyzed tree instead. The primary reason for
doing this is that for rule deparsing it's easier to use the opclass
than the previous representation.
While at it also rename a variable in the inference code to better fit
it's purpose.
This is separate from the actual fixes for deparsing to make review
easier.
Branch
------
master
Details
-------
http://git.postgresql.org/pg/commitdiff/0740cbd7593d871858c352fab29a59cf7fa54b00
Modified Files
--------------
contrib/pg_stat_statements/pg_stat_statements.c | 3 +-
src/backend/nodes/copyfuncs.c | 3 +-
src/backend/nodes/equalfuncs.c | 3 +-
src/backend/nodes/outfuncs.c | 3 +-
src/backend/nodes/readfuncs.c | 3 +-
src/backend/optimizer/util/plancat.c | 34 +++++++++++++++--------
src/backend/parser/parse_clause.c | 14 ++--------
src/include/nodes/primnodes.h | 3 +-
8 files changed, 31 insertions(+), 35 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] 3+ messages in thread
* Re: pgsql: Refactor ON CONFLICT index inference parse tree representation.
@ 2015-05-19 21:24 Tom Lane <tgl@sss.pgh.pa.us>
parent: Andres Freund <andres@anarazel.de>
0 siblings, 1 reply; 3+ messages in thread
From: Tom Lane @ 2015-05-19 21:24 UTC (permalink / raw)
To: Andres Freund <andres@anarazel.de>; +Cc: pgsql-committers
Andres Freund <andres@anarazel.de> writes:
> Refactor ON CONFLICT index inference parse tree representation.
This evidently changed stored rules, so it should've had a catversion
bump. It's not too important because I did one earlier today, but
just as a reminder ...
regards, tom lane
--
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] 3+ messages in thread
* Re: pgsql: Refactor ON CONFLICT index inference parse tree representation.
@ 2015-05-19 21:25 Andres Freund <andres@anarazel.de>
parent: Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 0 replies; 3+ messages in thread
From: Andres Freund @ 2015-05-19 21:25 UTC (permalink / raw)
To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: pgsql-committers
On 2015-05-19 17:24:49 -0400, Tom Lane wrote:
> Andres Freund <andres@anarazel.de> writes:
> > Refactor ON CONFLICT index inference parse tree representation.
>
> This evidently changed stored rules, so it should've had a catversion
> bump. It's not too important because I did one earlier today, but
> just as a reminder ...
Ah damnit. Thanks.
--
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] 3+ messages in thread
end of thread, other threads:[~2015-05-19 21:25 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2015-05-19 21:20 pgsql: Refactor ON CONFLICT index inference parse tree representation. Andres Freund <andres@anarazel.de>
2015-05-19 21:24 ` Tom Lane <tgl@sss.pgh.pa.us>
2015-05-19 21:25 ` Andres Freund <andres@anarazel.de>
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