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

Re: [HACKERS] Parser bug?

From: "Oliver Elphick" <olly(at)lfix(dot)co(dot)uk>
To: Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us>
Cc: olly(at)lfix(dot)co(dot)uk (Oliver Elphick), hackers(at)postgreSQL(dot)org, lockhart(at)alumni(dot)caltech(dot)edu
Subject: Re: [HACKERS] Parser bug?
Date: 1998-11-23 23:18:26
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers
Bruce Momjian wrote:
  >> I think this is a bug in 6.4:
  >> bray=> select rcname, rcsrc from pg_relcheck where rcrelid =
  >> '115404'::oid and rcrelid in (select min(rcrelid) from pg_relcheck
  >> group by rcname); ERROR:  parser: Subselect has too many or too
  >> few fields.
  >> The subselect only produces one column; so I think that the
  >> error message is wrong.
  >What is the GROUP BY doing?

This relates to the bug in pg_dump which messes up inherited constraints.

The object is to find which is the table in an inheritance hierarchy for
which the check constraint is first defined, which must inevitably be the
one with the lowest numbered oid.  The GROUP BY operates with the aggregate
to return the low-numbered oid for each separate rcname.

Oliver Elphick                                Oliver(dot)Elphick(at)lfix(dot)co(dot)uk
Isle of Wight                    
               PGP key from public servers; key ID 32B8FAA1
     "The LORD is nigh unto all them that call upon him, to
      all that call upon him in truth."        
                                   Psalms 145:18


pgsql-hackers by date

Next:From: Terry MackintoshDate: 1998-11-24 02:04:33
Subject: Re: [HACKERS] Tree type, how best to impliment?
Previous:From: Bruce MomjianDate: 1998-11-23 20:10:15
Subject: Re: [HACKERS] Parser bug?

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