pgsql: Tweak make_inh_translation_lists() to check the common case - Mailing list pgsql-committers

From tgl@postgresql.org (Tom Lane)
Subject pgsql: Tweak make_inh_translation_lists() to check the common case
Date
Msg-id 20070421055641.DACF09FB1C6@postgresql.org
Whole thread Raw
List pgsql-committers
Log Message:
-----------
Tweak make_inh_translation_lists() to check the common case wherein parent and
child attnums are the same, before it grovels through each and every child
column looking for a name match.  Saves some time in large inheritance trees,
per example from Greg.

Modified Files:
--------------
    pgsql/src/backend/optimizer/prep:
        prepunion.c (r1.140 -> r1.141)

(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/optimizer/prep/prepunion.c.diff?r1=1.140&r2=1.141)

pgsql-committers by date:

Previous
From: tgl@postgresql.org (Tom Lane)
Date:
Subject: pgsql: Improve the way in which CatalogCacheComputeHashValue combines
Next
From: tgl@postgresql.org (Tom Lane)
Date:
Subject: pgsql: Avoid useless work during set_plain_rel_pathlist() when the