Re: COPY and domains

From: Richard Huxton <dev(at)archonet(dot)com>
To: "Tambet Matiisen" <t(dot)matiisen(at)aprote(dot)ee>, <pgsql-general(at)postgresql(dot)org>
Subject: Re: COPY and domains
Date: 2003-08-01 12:00:20
Message-ID: 200308011300.20745.dev@archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Friday 01 August 2003 08:45, Tambet Matiisen wrote:
> I noticed that COPY is getting very slow, when importing to table, which
> makes use of domains as column datatypes. It seems like foreign key
> validation is especially slow. It takes ages to import table with 25000
> rows, which has foreign key reference to another table with 25000 rows.
> I tried the same tables without domains and it was much faster. Is this
> known problem?
>
> Version: PostgreSQL 7.3.2 on i386-pc-linux-gnu, compiled by GCC gcc
> (GCC) 3.2.3.

I've found a few issues with domains in 7.3.x (note 7.3.4 is out and you
should probably upgrade as soon as is convenient).

Occasionally, it seems PG has trouble identifying operators that are valid and
figuring out it can use an index. This is a shame because defining domains
for things like "tel_num" or "email" is great.

I think some refinements have been put into 7.4

--
Richard Huxton
Archonet Ltd

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Christopher Browne 2003-08-01 12:20:02 Re: Views With Unions
Previous Message Elielson Fontanezi 2003-08-01 11:54:10 error while loading shared libraries: libpq.so.3