Re: cannot restore a view after a dump

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Marc Cousin <mcousin(at)sigma(dot)fr>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: cannot restore a view after a dump
Date: 2008-04-11 23:01:06
Message-ID: 18480.1207954866@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Marc Cousin <mcousin(at)sigma(dot)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.140.2.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

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Ryan Wells 2008-04-12 02:41:53 pg_dump Performance
Previous Message Kenneth Marshall 2008-04-11 21:24:40 Re: What is the difference in storage between a blank string and null?