Re: Foreign key wierdness

From: "Dave Page" <dpage(at)vale-housing(dot)co(dot)uk>
To: "Didier Moens" <Didier(dot)Moens(at)dmb001(dot)rug(dot)ac(dot)be>
Cc: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>, "PostgreSQL Hackers Mailing List" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Foreign key wierdness
Date: 2003-01-22 21:58:21
Message-ID: 03AF4E498C591348A42FC93DEA9661B88587@mail.vale-housing.co.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> -----Original Message-----
> From: Didier Moens [mailto:Didier(dot)Moens(at)dmb001(dot)rug(dot)ac(dot)be]
> Sent: 22 January 2003 16:05
> To: Dave Page
> Cc: Tom Lane; PostgreSQL Hackers Mailing List
> Subject: Re: [HACKERS] Foreign key wierdness
>
>
> I did some extensive testing using PostgreSQL 7.3.1 (logs and results
> available upon request), and the massive slowdown is NOT related to
> qualified tablename syntax or (lack of) VACUUM ANALYZE, but to the
> following change :
>
> pgAdminII 1.4.2 :
> -------------------
> CREATE TABLE articles (
> article_id integer DEFAULT
> nextval('"articles_article_id_key"'::text) NOT NULL,
> ...
>
> pgAdminII 1.4.12 :
> --------------------
> CREATE TABLE articles (
> article_id bigint DEFAULT
> nextval('"articles_article_id_key"'::text)
> NOT NULL,
> ...

I'd never have guessed that one, despite noting that particular change
in the code some time ago. Oh well...

Anyway, that was changed in pgAdmin because I got a couple of complaints
about it's use of int4 for migrated serial/autonumber columns. One user
was migrating some *very* large numbers from a SQL Server.

From what Tom has said in his reponse, I think the answer for you Didier
is to remap your integer columns to int8 instead of int4 and see what
happens. When I get a couple of minutes I will look at putting a Serials
as... Option in the type map.

Regards, Dave.

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Dave Page 2003-01-22 22:04:05 Re: Foreign key wierdness
Previous Message Robert Treat 2003-01-22 21:51:05 Re: Release Scheduales: 7.2.4 & 7.3.2