> -----Original Message-----
> From: Tom Lane [mailto:[EMAIL PROTECTED]] 
> Sent: 20 January 2003 16:08
> To: Dave Page
> Cc: PostgreSQL Hackers Mailing List; Didier Moens
> Subject: Re: [HACKERS] Foreign key wierdness 
> 
> 
> "Dave Page" <[EMAIL PROTECTED]> writes:
> > Thing is Tom, this issue can be reproduced *every* time, 
> without fail.
> 
> And have you vacuumed or analyzed yet?  Or possibly you are 
> short an index or two (you really need indexes on both the 
> referencing and referenced columns).

Didier?

> > I've been looking at his for some time now (couple of weeks 
> or more), 
> > and the only thing I can find is the SELECT ... FOR UPDATE in the 
> > PostgreSQL logs that I quoted. These exactly follow *every* fkey 
> > creation, and are definately not issued by pgAdmin.
> 
> No, I told you: those are the internal verification query (it 
> comes from RI_FKey_check_ins(), if you want to look).

Sorry, brain hiccup.

> If you really think the schema qualification has something to 
> do with it, try issuing the ADD FOREIGN KEY command manually 
> in psql, with and without schema name.

Well to be honest I'm having a hard time believing it, but having looked
at this in some depth, it's the only thing that the 2 versions of
pgAdmin are doing differently. Even the PostgreSQL logs agree with that.
I'm relying on Didier for test results though as I don't have a test
system I can use for this at the moment.

But it gives us something to try - Didier can you create a new database
please, and load the data from 2 tables. VACUUM ANALYZE, then add the
foreign key in psql using the syntax 1.4.2 uses. Then drop the database,
and load exactly the same data in the same way, VACUUM ANALYZE again,
and create the fkey using the qualified tablename syntax.

Thanks, Dave.

---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://archives.postgresql.org

Reply via email to