Skip site navigation (1) Skip section navigation (2)

Parser doesn't grok unqualified array element

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-hackers(at)postgreSQL(dot)org
Subject: Parser doesn't grok unqualified array element
Date: 1999-03-28 04:16:44
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers
Has this come up before?  6.4.2 and current sources both have
this problem:

	select count(*) from pg_proc where pg_proc.proargtypes[0] = 701;
works, but
	select count(*) from pg_proc where proargtypes[0] = 701;
fails with ERROR: Unable to locate type name 'proargtypes' in catalog

The grammar doesn't seem to have a case that allows for a subscripted
attribute name without a relation name in front of it.

It looks like fixing this might be as easy as making the "ColId"
cases in a_expr, b_expr, possibly other places include an
opt_indirection item like columnElem does.  But maybe there's
more to it than meets the eye?

			regards, tom lane


pgsql-hackers by date

Next:From: Michael ContzenDate: 1999-03-28 15:46:58
Subject: Memory grows without bounds in aggregates!
Previous:From: Tom LaneDate: 1999-03-28 03:20:11
Subject: Speedup idea: avoid using SQL procedures as aliases

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group