Re: COPY documentation with regard to references constraints

From: Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at>
To: Bruno Wolff III <bruno(at)wolff(dot)to>, pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: COPY documentation with regard to references constraints
Date: 2024-10-31 13:08:00
Message-ID: aab49ba8663ad70edaac1a6db93a0aec5bdf380c.camel@cybertec.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Thu, 2024-10-31 at 06:38 -0500, Bruno Wolff III wrote:
> I was unable to find any documentation clarifying if using COPY to load a
> table with rows referencing others rows in the same table, whether I
> had to worry about ordering of the input.

I cannot find it in the documentation either, but since COPY is a single
statement and foreign key constraints are checked at the end of the
statement, it should work fine.

Yours,
Laurenz Albe

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Laurenz Albe 2024-10-31 13:11:04 Re: pg_wal folder high disk usage
Previous Message Bruno Wolff III 2024-10-31 12:20:02 Re: COPY documentation with regard to references constraints