From: Christopher Kings-Lynne <chriskl@familyhealth.com.au>
To: Edoardo Ceccarelli <eddy@axa.it>
Cc: pg@fastcrypt.com, "pgsql-jdbc@postgresql.org" <pgsql-jdbc@postgresql.org>
Cc: pgsql-performance@postgresql.org
Cc: pgsql-admin@postgresql.org
Subject: Re: [JDBC] [PERFORM] is a good practice to create an index on the
Date: Wed, 28 Apr 2004 09:30:44 +0800
Message-ID: <408F0944.5060608@familyhealth.com.au> (raw)
In-Reply-To: <408ED3E2.802@axa.it>
References: <408D3AE8.5020006@axa.it>
<408DC9E1.8020704@familyhealth.com.au>
<1083067187.14759.178.camel@localhost.localdomain>
<408E75C2.5060703@familyhealth.com.au>
<1083079114.14759.204.camel@localhost.localdomain>
<408ED3E2.802@axa.it>
> I am going to use them as primary key of the table, so I'll surely need
> them unique :)
Eduoardo, I REALLY suggest you don't use them at all. You should make a
primary key like this:
CREATE TABLE blah (
id SERIAL PRIMARY KEY,
...
);
Also note that by default, OIDs are NOT dumped by pg_dump. You will
need to add extra switches to your pg_dump backup to ensure that they are.
Chris
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: chriskl@familyhealth.com.au, eddy@axa.it, pgsql-jdbc@postgresql.org, pgsql-performance@postgresql.org
Subject: Re: [JDBC] [PERFORM] is a good practice to create an index on the
In-Reply-To: <408F0944.5060608@familyhealth.com.au>
References: <408D3AE8.5020006@axa.it> <408DC9E1.8020704@familyhealth.com.au> <1083067187.14759.178.camel@localhost.localdomain> <408E75C2.5060703@familyhealth.com.au> <1083079114.14759.204.camel@localhost.localdomain> <408ED3E2.802@axa.it> <408F0944.5060608@familyhealth.com.au>
* 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