From: Bruce Momjian <pgman@candle.pha.pa.us>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Moray McConnachie <moray.mcconnachie@computing-services.oxford.ac.uk>
Cc: pgsql-sql@postgreSQL.org
Subject: Re: [SQL] how to create index on timestamp field in pre v7 database
Date: Fri, 25 Feb 2000 11:54:40 -0500 (EST)
Message-ID: <200002251654.LAA23872@candle.pha.pa.us> (raw)
In-Reply-To: <7601.951496156@sss.pgh.pa.us>
> "Moray McConnachie" <moray.mcconnachie@computing-services.oxford.ac.uk> writes:
> > Agreed - but note that pg_dump currently produces CREATE INDEX
> > statements with opclasses included.
>
> Right, as it should since its purpose is to ensure you rebuild exactly
> the same database. I was just opining that handwritten CREATE INDEXes
> usually can omit the opclass. (BTW, I fixed the problem with functional
> indexes needing an explicit opclass spec last night.)
>
> > That means running a script created by pg_dump v.6.5.x will fail under
> > 7.0 because there is no index opclass of the type datetime?
>
> An embarrassing problem. We are going to work around this by having
> the 7.0 parser discard the word "datetime" if it sees it in the opclass
> position. There are a couple of other now-dead opclass names that will
> be discarded in the same way. Klugy, but it will get the job done for
> reading old dump files.
>
> (This hack is not in 7.0beta1, but will be in beta2.)
It is my understanding we are generating a new beta every night, so it
should be there now.
--
Bruce Momjian | http://www.op.net/~candle
pgman@candle.pha.pa.us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026
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-sql@postgresql.org
Cc: pgman@candle.pha.pa.us, tgl@sss.pgh.pa.us, moray.mcconnachie@computing-services.oxford.ac.uk
Subject: Re: [SQL] how to create index on timestamp field in pre v7 database
In-Reply-To: <200002251654.LAA23872@candle.pha.pa.us>
References: <7601.951496156@sss.pgh.pa.us> <200002251654.LAA23872@candle.pha.pa.us>
* 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