pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Marc Cousin <mcousin@sigma.fr>
Cc: pgsql-admin@postgresql.org
Subject: Re: cannot restore a view after a dump
Date: Fri, 11 Apr 2008 19:01:06 -0400
Message-ID: <18480.1207954866@sss.pgh.pa.us> (raw)
In-Reply-To: <200804041022.31746.mcousin@sigma.fr>
References: <200804041022.31746.mcousin@sigma.fr>

Marc Cousin <mcousin@sigma.fr> writes:
> I'm having a strange problem : I created a view in a database, and I cannot restore it after a pg_dump.
> ...
> ERROR:  for SELECT DISTINCT, ORDER BY expressions must appear in select list

You need this patch:

http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/utils/adt/arrayfuncs.c?r1=1.140&r2=1....

I found that this problem was introduced in 8.2, which may explain why
you'd not seen it before, if you were previously using an older release.

			regards, tom lane



view thread (7+ messages)  latest in thread

Message-ID: <18480.1207954866@sss.pgh.pa.us>
Permalink:  ../18480.1207954866@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/18480.1207954866@sss.pgh.pa.us

 · 

reply

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 using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: tgl@sss.pgh.pa.us, mcousin@sigma.fr
  Subject: Re: cannot restore a view after a dump
  In-Reply-To: <18480.1207954866@sss.pgh.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