Re: nodeRead: did not find '}' at end of plan node

From: tstump(at)regenstrief(dot)org (Tim Stump)
To: pgsql-general(at)postgresql(dot)org
Subject: Re: nodeRead: did not find '}' at end of plan node
Date: 2003-02-18 16:19:30
Message-ID: 9f72e30f.0302180819.58e5375b@posting.google.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

tgl(at)sss(dot)pgh(dot)pa(dot)us (Tom Lane) wrote in message news:<11222(dot)1045258379(at)sss(dot)pgh(dot)pa(dot)us>...
> tstump(at)regenstrief(dot)org (Tim Stump) writes:
> > I'm trying to drop a view from my postgres database and getting the
> > following error:
> > ERROR: nodeRead: did not find '}' at end of plan node
>
> This suggests either that you have a corrupted entry in pg_rewrite,
> or that the database is somehow version-incompatible with the backend
> (ie, the backend is expecting a different parsetree-node layout than
> what is in the database entry for the view).
>
> Would you show us the output from
>
> select * from pg_rewrite where ev_class = (select oid from pg_class
> where relname = 'the-troublesome-view');
>
> If you don't really care about determining the cause, you could just
> manually DELETE the view's row from pg_class, and then you should be
> able to dump. But it would be interesting to figure out how you got
> into this state.
>
> regards, tom lane
>
> ---------------------------(end of broadcast)---------------------------
> TIP 6: Have you searched our list archives?
>
> http://archives.postgresql.org

Tom,

Thanks for the information. I manually deleted the view from the
pg_class table, but then I could not re-create the view (i.e., using
the same name). There must be some other system table that stores
information out there besides pg_class. At least I could create a
dump file of the entire database. Then I dropped the database and
restored from the dump file. After this, I was able to create the
view just fine. Not sure if that is the optimal solution, but it
worked. Thanks again for your help.

--Tim

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Hans-Jürgen Schönig 2003-02-18 16:53:31 Re: WHERE problem
Previous Message Greg Stark 2003-02-18 15:56:54 Re: TIMESTAMP WITH( OUT)? TIME ZONE indexing/type choice...