Re: [HACKERS] 6.5 cvs: views doesn't survives after pg_dump (fwd)

From: Keith Parks <emkxp01(at)mtcc(dot)demon(dot)co(dot)uk>
To: pgsql-hackers(at)postgresql(dot)org, oleg(at)sai(dot)msu(dot)su
Subject: Re: [HACKERS] 6.5 cvs: views doesn't survives after pg_dump (fwd)
Date: 1999-05-21 21:34:50
Message-ID: 199905212134.WAA05798@mtcc.demon.co.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Oleg Bartunov <oleg(at)sai(dot)msu(dot)su>
> After dumping (by pg_dump) and restoring views becomes a tables
>

The problem is that views are dumped with anm extraneous "WHERE"

> ............................
> QUERY: COPY "t1" FROM stdin;
> CREATE RULE "_RETv1" AS ON SELECT TO "v1" WHERE DO INSTEAD SELECT "a" FROM
"t1";
> QUERY: CREATE RULE "_RETv1" AS ON SELECT TO "v1" WHERE DO INSTEAD SELECT "a"
FROM "t1";

...................................................++++++

> ERROR: parser: parse error at or near "do"
> EOF

Which causes this error and the rule (View) is not Created.

I don't know how the where clause gets in there but if you
edit the dump before restoring all is OK.

Keith.

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 1999-05-22 02:54:51 ddd and postgres prompt
Previous Message Bruce Momjian 1999-05-21 21:14:33 Re: [HACKERS] strange behavior of UPDATE