Re: Getting rid of pre-assignment of index names in CREATE TABLE LIKE - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Getting rid of pre-assignment of index names in CREATE TABLE LIKE
Date
Msg-id 13284.1342458649@sss.pgh.pa.us
Whole thread Raw
In response to Re: Getting rid of pre-assignment of index names in CREATE TABLE LIKE  (Robert Haas <robertmhaas@gmail.com>)
Responses Re: Getting rid of pre-assignment of index names in CREATE TABLE LIKE  (Robert Haas <robertmhaas@gmail.com>)
List pgsql-hackers
Robert Haas <robertmhaas@gmail.com> writes:
> The problem isn't confined to CREATE TABLE LIKE; it's a widespread
> design flaw that will likely take years of work to clean up
> completely.  I don't think that's a reason not to commit your change
> though; it fixes a bug and is an incremental improvement, even if a
> small one.  That having been said, if you're feeling an urge to tackle
> the problem more broadly, don't let me stand in your way...

Not me; I'm just trying to close out a bug report.

FWIW, I think your argument only barely supports this change at all,
because CREATE TABLE LIKE is still generating an IndexStmt which after
all is the representation of a CREATE INDEX command.  We've overloaded
it to do a few other things, and now it will be able to do one more
thing, but this isn't moving things at all towards separating high-
and low-level operations.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: Getting rid of pre-assignment of index names in CREATE TABLE LIKE
Next
From: Robert Haas
Date:
Subject: Re: CompactCheckpointerRequestQueue versus pad bytes