Re: Pulling data from a constraint def - Mailing list pgsql-general

From Tom Lane
Subject Re: Pulling data from a constraint def
Date
Msg-id 10271.1273725188@sss.pgh.pa.us
Whole thread Raw
In response to Re: Pulling data from a constraint def  (Josh Kupershmidt <schmiddy@gmail.com>)
Responses Re: Pulling data from a constraint def  ("Gauthier, Dave" <dave.gauthier@intel.com>)
Re: Pulling data from a constraint def  (David Fetter <david@fetter.org>)
List pgsql-general
Josh Kupershmidt <schmiddy@gmail.com> writes:
> On Wed, May 12, 2010 at 12:58 AM, David Fetter <david@fetter.org> wrote:
>> If you've measured a performance issue for a table that tiny, it's a
>> bug that needs fixing in PostgreSQL. �What measurements have you done
>> so far?

> Just for fun, I tried it out myself. Here are the times I got on my
> modest laptop:

> CHECK constraint:
>  * 500k INSERTs: 3.8 seconds
>  * 500k UPDATEs: 6.0 seconds

> Foreign Key:
>  * 500k INSERTs: 18.7 seconds
>  * 500k UPDATEs: 21.2 seconds

I'm surprised no one has yet suggested an ENUM type.

            regards, tom lane

pgsql-general by date:

Previous
From: Jan Wieck
Date:
Subject: Retiring from the PostgreSQL core team
Next
From: strk
Date:
Subject: current_user in seucurity DEFINER functions