From: Tom Lane <tgl@sss.pgh.pa.us>
To: Brian McCane <bmccane@mccons.net>
Cc: Jean-Christophe ARNU <jc.arnu@free.fr>
Cc: pgsql-admin@postgresql.org
Subject: Re: index keeps on growing
Date: Wed, 19 Jun 2002 10:48:31 -0400
Message-ID: <4682.1024498111@sss.pgh.pa.us> (raw)
In-Reply-To: <20020619093539.M29552-100000@fw.mccons.net>
References: <20020619093539.M29552-100000@fw.mccons.net>
Brian McCane <bmccane@mccons.net> writes:
> Okay, thanks for that information. I will have to dig through my
> pgsql-admin archive here and find the code for setting the primary key
> flag. Unless of course someone would like to offer me the information
> *HINT* :).
If you'd like to be backwards-compatible with older backends, I think
you need to reach in and set the indisprimary field of the pg_index
row for the index.
As of 7.2 or so there is an ALTER TABLE ADD PRIMARY KEY syntax that you
could use instead of creating the index directly. This would be better
since it doesn't require superuser privileges...
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: tgl@sss.pgh.pa.us, bmccane@mccons.net, jc.arnu@free.fr
Subject: Re: index keeps on growing
In-Reply-To: <4682.1024498111@sss.pgh.pa.us>
References: <20020619093539.M29552-100000@fw.mccons.net> <4682.1024498111@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
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