Re: Re: [COMMITTERS] pgsql: Fix brain fade in DefineIndex(): it was continuing to access the

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: ohp(at)pyrenet(dot)fr
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Andrew Dunstan <andrew(at)dunslane(dot)net>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Re: [COMMITTERS] pgsql: Fix brain fade in DefineIndex(): it was continuing to access the
Date: 2007-09-02 22:49:57
Message-ID: 20070902224957.GC20519@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers pgsql-hackers

ohp(at)pyrenet(dot)fr wrote:
> Hi Tom and Andrew,
>
> On Thu, 30 Aug 2007, Tom Lane wrote:
>
> While waiting for my application for another animal, I made some tests and
> was surprised that cluster test failed with an ordering error.

This is running with CLOBBER_CACHE_ALWAYS set, right? I think it is
quite possible that an autovacuum came and processed the catalog,
leading to different ordering.

> Maybe an ORDER BY is missing in the test query.

Yeah, an ORDER BY should be enough.

> SELECT conname FROM pg_constraint WHERE conrelid = 'clstr_tst'::regclass;
> conname
> ----------------
> - clstr_tst_pkey
> clstr_tst_con
> (2 rows)
>
> SELECT relname, relkind,
> --- 252,259 ----
> SELECT conname FROM pg_constraint WHERE conrelid = 'clstr_tst'::regclass;
> conname
> ----------------
> clstr_tst_con
> + clstr_tst_pkey
> (2 rows)

--
Alvaro Herrera http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.

In response to

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2007-09-03 00:39:26 pgsql: Implement function-local GUC parameter settings, as per recent
Previous Message User Pjmodos 2007-09-02 08:29:55 docbot - docbot: Fixed typo spotted by mastermind

Browse pgsql-hackers by date

  From Date Subject
Next Message Gregory Stark 2007-09-02 23:26:46 Re: tsearch filenames unlikes special symbols and numbers
Previous Message Tom Lane 2007-09-02 22:46:11 Re: tsearch filenames unlikes special symbols and numbers