Re: [HACKERS] Parser bug?

From: "Oliver Elphick" <olly(at)lfix(dot)co(dot)uk>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: hackers(at)postgreSQL(dot)org
Subject: Re: [HACKERS] Parser bug?
Date: 1998-11-24 19:22:02
Message-ID: 199811241922.TAA01780@linda.lfix.co.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Tom Lane wrote:
...
>In fact, I was about to point out that the query you were describing
>couldn't possibly give you a reliable answer, quite independent of
>whether the backend is implementing it properly or not.

I think this will do the job; can you please check it out:

select rcname,rcsrc from pg_relcheck, pg_inherits as i
where rcrelid = '%s'::oid
and (not exists -- for
(select * from pg_inherits -- non-inherited
where inhrel = pg_relcheck.rcrelid) -- tables

or (not exists --
(select * from pg_relcheck as c -- for
where c.rcname = pg_relcheck.rcname -- inherited
and c.rcrelid = i.inhparent) -- tables
and rcrelid = i.inhrel)); --

--
Oliver Elphick Oliver(dot)Elphick(at)lfix(dot)co(dot)uk
Isle of Wight http://www.lfix.co.uk/oliver
PGP key from public servers; key ID 32B8FAA1
========================================
"Jesus saith unto him, I am the way, the truth, and the
life; no man cometh unto the Father, but by me."
John 14:6

Browse pgsql-hackers by date

  From Date Subject
Next Message Oliver Elphick 1998-11-24 23:16:23 Patch for pg_dump (6.4) inheritance bug
Previous Message Stephen Kogge 1998-11-24 18:47:38 Re: [HACKERS] 6.4.1 schedule SUNOS4.1.X build