Re: Using Indices

From: Patrik Kudo <kudo(at)partitur(dot)se>
To: Alexander Lohse <al(at)humantouch(dot)de>
Cc: <pgsql-general(at)postgresql(dot)org>
Subject: Re: Using Indices
Date: 2001-04-01 16:28:28
Message-ID: Pine.BSF.4.31.0104011825261.54442-100000@tb303.partitur.se
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi

You should use the original field name. You don't have to worry about the
indicies after they're created. Postgres uses them automagicaly whenever
she think they'll speed up your queries. The name of the index is choosen
to make it easy to understand what it's indexing (pers table, uid key in
your case)

Hope it helps.

Regards,
Patrik Kudo

ech`echo xiun|tr nu oc|sed 'sx\([sx]\)\([xoi]\)xo un\2\1 is xg'`ol
Känns det oklart? Fråga på!

On Sun, 1 Apr 2001, Alexander Lohse wrote:

> Hi,
>
> when I use phpPgAdmin to create DBs, my Indices are getting automatic
> names like : pers_UID_key
>
> I am getting confused about the name!
>
> Does that mean a need to do call this in a select query?
>
> "select * from pers where pers_UID_key = '...'"
>
> or do i call the original field?
>
> "select * from pers where UID= '...'"
>
> Thanx,
>
> Alex
> --
> ___________________________
> Alexander Lohse
> Human Touch Medienproduktion GmbH
> Am See 1
> 17440 Klein Jasedow
>
> Tel: (038374) 75211
> Fax: (038374) 75223
> eMail: al(at)humantouch(dot)de
> http://www.humantouch.de
>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo(at)postgresql(dot)org so that your
> message can get through to the mailing list cleanly
>

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Daniel ?erud 2001-04-01 16:31:20 Re: Re: Dissapearing indexes, what's that all about?
Previous Message Richard Huxton 2001-04-01 16:27:16 Re: 7.0.X-> 7.1 dump/restore required?