Re: Index creation takes for ever

From: ohp(at)pyrenet(dot)fr
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-hackers list <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Index creation takes for ever
Date: 2003-08-28 14:53:18
Message-ID: Pine.UW2.4.53.0308281642420.21144@server.pyrenet.fr
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

Okay, so far,
I've reinitdb (on 7.4b) with LANG=C and it worked.
So I reinitDB with LANG=FR and used LANG=C to psql -f xxx.sql template1 to
recreate the db and it worked too...

I did'nt initdb between cvs changes, maybe that's why.

7.4b seems ok.
However, is there a way I can reindex on my 7.3.4 production
cluster cluster without an initdb?

would LANG=C psql -c"reindex table blah" db would help?
On Thu, 28 Aug 2003, Tom Lane wrote:

> Date: Thu, 28 Aug 2003 10:38:26 -0400
> From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
> To: ohp(at)pyrenet(dot)fr
> Cc: pgsql-hackers list <pgsql-hackers(at)postgresql(dot)org>
> Subject: Re: [HACKERS] Index creation takes for ever
>
> ohp(at)pyrenet(dot)fr writes:
> > This is on unixware 7 (both 7.3.4 and 7.4b)
>
> > I'm on the FR language (I'll re-initdb whith lang=C to see what happens)
>
> Okay. If you find it's still slow in C locale, the next thing to try
> would be forcing use of our own qsort, as we already do for Solaris.
> You'd need to tweak this bit in configure.in:
>
> # Solaris has a very slow qsort in certain cases, so we replace it.
> case $host_os in solaris*)
> AC_LIBOBJ(qsort) ;;
> esac
>
> I'm not sure why it's done that way though. 'Twould be better to let
> the per-platform template files determine it.
>
> regards, tom lane
>

--
Olivier PRENANT Tel: +33-5-61-50-97-00 (Work)
6, Chemin d'Harraud Turrou +33-5-61-50-97-01 (Fax)
31190 AUTERIVE +33-6-07-63-80-64 (GSM)
FRANCE Email: ohp(at)pyrenet(dot)fr
------------------------------------------------------------------------------
Make your life a dream, make your dream a reality. (St Exupery)

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andreas Pflug 2003-08-28 15:06:49 Re: Weird constraint output
Previous Message Rod Taylor 2003-08-28 14:41:52 Re: Hardware recommendations to scale to silly load

Browse pgsql-patches by date

  From Date Subject
Next Message Tom Lane 2003-08-28 16:19:13 Re: Index creation takes for ever
Previous Message Tom Lane 2003-08-28 14:38:26 Re: Index creation takes for ever