Re: [HACKERS] pg_dump(all) and views, broke
От | Terry Mackintosh |
---|---|
Тема | Re: [HACKERS] pg_dump(all) and views, broke |
Дата | |
Msg-id | Pine.LNX.3.95.981125125030.6715A-100000@terry1.acun.com обсуждение исходный текст |
Ответ на | Re: [HACKERS] pg_dump(all) and views, broke (jwieck@debis.com (Jan Wieck)) |
Ответы |
Re: [HACKERS] pg_dump(all) and views, broke
|
Список | pgsql-hackers |
Hi Jan OK, thanks for your reply. A followup, I noticed that if the table names have been aliased, then it puts in the alias name, it's only when not aliased that it leaves out the names Here is a much more complicated one that works fine, but uses aliased table names: CREATE RULE "_RETkeywcatlist" AS ON SELECT TO "keywcatlist" DO INSTEAD SELECT "l"."title", "l"."discription", "l"."url", "l"."lanme", "l"."fname", "l"."email", "l"."ent_date", "l"."mod_date", "l"."approved", "l"."item_id", "k"."keyword", "c"."category" FROM "listings" "l", "keywords" "k", "keyw2list" "k2l", "categories" "c", "cat2list" "c2l" WHERE ((("l"."item_id" = "k2l"."item_id") AND ("k"."keyw_id" = "k2l"."keyw_id")) AND ("l"."item_id" = "c2l"."item_id")) AND ("c"."category" = "c2l"."category"); I know the prefixes could have been left off of unique names, but put them on for clarity in the future. ... or for confusion, however it works out:) Thanks Terry Mackintosh <terry@terrym.com> http://www.terrym.com sysadmin/owner Please! No MIME encoded or HTML mail, unless needed. Proudly powered by R H Linux 4.2, Apache 1.3, PHP 3, PostgreSQL 6.4 ------------------------------------------------------------------- Success Is A Choice ... book by Rick Patino, get it, read it!
В списке pgsql-hackers по дате отправления: