pg_dump performance lossage for primary keys - Mailing list pgsql-hackers

From Tom Lane
Subject pg_dump performance lossage for primary keys
Date
Msg-id 6553.986322813@sss.pgh.pa.us
Whole thread Raw
Responses Re: pg_dump performance lossage for primary keys  (Philip Warner <pjw@rhyme.com.au>)
List pgsql-hackers
I notice that pg_dump now dumps primary-key indexes in the style

CREATE TABLE ... ("dest_index" integer DEFAULT ...,Constraint "dest_addresses_pkey" Primary Key ("dest_index")
);

...

COPY ...  FROM stdin;
-- load data
\.

-- create other indexes for table

Isn't this pretty darn stupid?  Previously, we created indexes after
loading the data.  We're going to take a huge performance hit to do it
this way.

IMHO it would be better to reach in and set the "primary key" flag on
the index after creating it normally.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Final call for platform testing
Next
From: Tom Lane
Date:
Subject: Re: pg_dump performance lossage for primary keys