Re: Odd error... - Mailing list pgsql-hackers

From Dominic J. Eidson
Subject Re: Odd error...
Date
Msg-id Pine.LNX.4.21.0107170812300.4434-100000@morannon.the-infinite.org
Whole thread Raw
In response to Re: Odd error...  (Philip Warner <pjw@rhyme.com.au>)
Responses Re: Odd error...
List pgsql-hackers
On Tue, 17 Jul 2001, Philip Warner wrote:

> At 22:12 16/07/01 -0500, Dominic J. Eidson wrote:
> >morannon:~>pg_dump -t bboard openacs | less
> >getTables(): SELECT (for VIEW ec_subsubcategories_augmented) returned NULL
> oid
> >SELECT was: SELECT definition as viewdef, (select oid from pg_rewrite
> >where rulename='_RET' || viewname) as view_oid from pg_views where
> >viewname = 'ec_subsubcategories_augmented';
> >
> >Any ideas what would cause this?
> 
> Probably the length of the view name; which version are you running? I
> haven't look at PG for a while, but I thought this was fixed in 7.1.2

openacs=# select version();                          version                           
-------------------------------------------------------------PostgreSQL 7.1 on i686-pc-linux-gnu, compiled by GCC
2.95.2
(1 row)

(pretty sure that's 7.1.0, btw)

openacs=# SELECT definition as viewdef, (select oid from pg_rewrite where rulename='_RET' || viewname) as view_oid from
pg_viewswhere viewname = 'ec_subsubcategories_augmented';

                                                                                  viewdef

                                                      | view_oid
 

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+----------SELECT
subsubs.subsubcategory_id,subsubs.subcategory_id, subsubs.subsubcategory_name, subsubs.sort_key, subsubs.last_modified,
subsubs.last_modifying_user,subsubs.modified_ip_address, subs.subcategory_name, cats.category_id, cats.category_name
FROMec_subsubcategories subsubs, ec_subcategories subs, ec_categories cats WHERE ((subsubs.subcategory_id =
subs.subcategory_id)AND (subs.category_id = cats.category_id)); |
 

As you can see, it gets the "viewdef" part fine, but not the "select oid
from pg_rewrite where ... " part.


-- 
Dominic J. Eidson                                       "Baruk Khazad! Khazad ai-menu!" - Gimli
-------------------------------------------------------------------------------
http://www.the-infinite.org/              http://www.the-infinite.org/~dominic/



pgsql-hackers by date:

Previous
From: Luis Sousa
Date:
Subject: Operator *=
Next
From: spshealy@yahoo.com
Date:
Subject: SIGCHLD handler in Postgres C function.