Skip site navigation (1) Skip section navigation (2)

Re: [JDBC] [PERFORM] is a good practice to create an index on the

From: Edoardo Ceccarelli <eddy(at)axa(dot)it>
To: Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au>
Cc: pg(at)fastcrypt(dot)com,"pgsql-jdbc(at)postgresql(dot)org" <pgsql-jdbc(at)postgresql(dot)org>,pgsql-performance(at)postgresql(dot)org, pgsql-admin(at)postgresql(dot)org
Subject: Re: [JDBC] [PERFORM] is a good practice to create an index on the
Date: 2004-04-28 08:13:14
Message-ID: 408F679A.9030608@axa.it (view raw or flat)
Thread:
Lists: pgsql-adminpgsql-jdbcpgsql-performance
do you mean that, declaring an index serial, I'd never have to deal with 
incrementing its primary key? good to know!
anyway  in this particular situation I don't need such accurate 
behaviour: this table is filled up with a lot of data twice per week and 
it's used only to answer queries.
I could drop it whenever I want :)

Thanks again,
eddy

Christopher Kings-Lynne ha scritto:

>> 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
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster
>
>
>

In response to

Responses

pgsql-performance by date

Next:From: Suller AndrĂ¡sDate: 2004-04-28 08:15:19
Subject: Re: Join problem
Previous:From: Manfred KoizarDate: 2004-04-28 07:34:59
Subject: Re: planner/optimizer question

pgsql-admin by date

Next:From: Christopher Kings-LynneDate: 2004-04-28 08:25:26
Subject: Re: [JDBC] [PERFORM] is a good practice to create an index on the
Previous:From: Christopher Kings-LynneDate: 2004-04-28 01:30:44
Subject: Re: [JDBC] [PERFORM] is a good practice to create an index on the

pgsql-jdbc by date

Next:From: Christopher Kings-LynneDate: 2004-04-28 08:25:26
Subject: Re: [JDBC] [PERFORM] is a good practice to create an index on the
Previous:From: Christopher Kings-LynneDate: 2004-04-28 01:30:44
Subject: Re: [JDBC] [PERFORM] is a good practice to create an index on the

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group