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

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: [HACKERS] 6.5 cvs: views doesn't survives after pg_dump (fwd)
Дата
Msg-id 199907071903.PAA06474@candle.pha.pa.us
обсуждение исходный текст
Ответ на [HACKERS] 6.5 cvs: views doesn't survives after pg_dump (fwd)  (Oleg Bartunov <oleg@sai.msu.su>)
Список pgsql-hackers
Looks like this was fixed in 6.5.


> I just checked the problem with views using current cvs and it's
> stell here.
> 
>     Regards,
> 
>         Oleg
> 
> _____________________________________________________________
> Oleg Bartunov, sci.researcher, hostmaster of AstroNet,
> Sternberg Astronomical Institute, Moscow University (Russia)
> Internet: oleg@sai.msu.su, http://www.sai.msu.su/~megera/
> phone: +007(095)939-16-83, +007(095)939-23-83
> 
> ---------- Forwarded message ----------
> Date: Thu, 13 May 1999 19:46:50 +0400 (MSD)
> From: Oleg Bartunov <oleg@sai.msu.su>
> To: pgsql-hackers@postgreSQL.org
> Subject: [HACKERS] 6.5 cvs: views doesn't survives after pg_dump
> 
> After dumping (by pg_dump) and restoring views becomes a tables
> 
> Here is a simple scenario:
> 1. createdb tview
> 
> 2. create table t1 (a int4, b int4);
>    create view v1 as select a from t1;
> 
> 3. pg_dump -z tview > tview.dump
> 4. destroydb tview
> 
>     createdb tview
> 
> 5. psql -e tview < tview.dump
> ............................
> 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
> 
> 6. psql tview
> 
> tview=> \dt
> Database    = tview
>  +------------------+----------------------------------+----------+
>  |  Owner           |             Relation             |   Type   |
>  +------------------+----------------------------------+----------+
>  | megera           | t1                               | table    |
>  | megera           | v1                               | table    |
>  +------------------+----------------------------------+----------+
> 
> tview=>
> 
>  view t1 now becomes table v1 !
> 
>     Regards,
> 
>         Oleg
> _____________________________________________________________
> Oleg Bartunov, sci.researcher, hostmaster of AstroNet,
> Sternberg Astronomical Institute, Moscow University (Russia)
> Internet: oleg@sai.msu.su, http://www.sai.msu.su/~megera/
> phone: +007(095)939-16-83, +007(095)939-23-83
> 
> 
> 
> 


--  Bruce Momjian                        |  http://www.op.net/~candle maillist@candle.pha.pa.us            |  (610)
853-3000+  If your life is a hard drive,     |  830 Blythe Avenue +  Christ can be your backup.        |  Drexel Hill,
Pennsylvania19026
 


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: [HACKERS] Broken select on regular expression !!!
Следующее
От: Bob Devine
Дата:
Сообщение: Re: [HACKERS] Fwd: Joins and links