Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1t6UuG-00DOHL-BP for pgsql-general@arkaria.postgresql.org; Thu, 31 Oct 2024 13:08:08 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1t6UuD-0019hc-Qw for pgsql-general@arkaria.postgresql.org; Thu, 31 Oct 2024 13:08:06 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1t6UuD-0019hP-DT for pgsql-general@lists.postgresql.org; Thu, 31 Oct 2024 13:08:05 +0000 Received: from mail-ej1-x62e.google.com ([2a00:1450:4864:20::62e]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1t6UuA-003mxX-TT for pgsql-general@lists.postgresql.org; Thu, 31 Oct 2024 13:08:04 +0000 Received: by mail-ej1-x62e.google.com with SMTP id a640c23a62f3a-a9abe139088so136072766b.1 for ; Thu, 31 Oct 2024 06:08:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec.at; s=cybertec.at; t=1730380081; x=1730984881; darn=lists.postgresql.org; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:to:from:subject:message-id:from:to:cc:subject:date :message-id:reply-to; bh=iHU2Ka3e7Hq92yUMssQKu1PaQj3db9xrgVyJoOl7bv4=; b=KXPZjoIcJhhvsmuup+YkDub7J+1tUwrTNNl7a0XeszMGuWaNFRvf81xCvWz+X9J0wa 2oVli7Ou0M2D1FMrbU0K4b9g45uJ5A/sN1uyRXUlh1f5h4ToJjG4IDdKyd+t0pdyxsad kXQ/hpV/Dg/2ndlTbrNmQwTQcbk6vDUn/DZO4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730380081; x=1730984881; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:to:from:subject:message-id:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=iHU2Ka3e7Hq92yUMssQKu1PaQj3db9xrgVyJoOl7bv4=; b=iRA7eRWd6DZOf0H1xQZ4vIT3dyDbfQymjDh1OiVi0WYxG6f16NWmdj8xl79MB1tfDa 4YpIQC/sRykV3XcUVUEzH+o3Cu5kgCCptIWitXQXEjr5FV7t1x2LkHocriMVff0K8pnq B4wrdxfRT7qhBOQpZtKqQEpUK27rq2Gr7VxH/5zxXTE/wK4ZUOlgLp0MEE43KNWCJbCU XvKM7kC7oH+jT3uE6GofMeE9+zrtGhggMbqbA+Ux+CC8ME+ThJxx2qaDrx8ffebtucmE oI8O+r+5SvGN+XWk1pyO+r1+3F2FeDmOiE/qwd2VQcFCWMATKZqA0UKldBGET8ODwxHZ GdFg== X-Forwarded-Encrypted: i=1; AJvYcCUXcR7XDZRDoSMt6yXWWYqr9T4Yqmf0T10a+HerTy46iFH5K/PtvdODQXo3eA9w6wol7Yx8kz076GQP2wXa@lists.postgresql.org X-Gm-Message-State: AOJu0YwX+zEpSUyGBIkJBy3te+Hcc8Iv8IP2jpGUTtS9oAZpvbmUIAEq 4wFmsUOevnYJPh+C+lhZnYyaDf1h2ZlMHUUQhKNQg8zsToEMyHdg1ktZoIqCc5M= X-Google-Smtp-Source: AGHT+IEXw3/QKhFhBJQ8gcUNCEgwz3z97v2RO5hI7bPI3/jO3oBcUNqpKy576N524J9YpWsf5kM1og== X-Received: by 2002:a17:907:724c:b0:a99:fa01:2b72 with SMTP id a640c23a62f3a-a9de5ee15e8mr1745346666b.33.1730380081116; Thu, 31 Oct 2024 06:08:01 -0700 (PDT) Received: from localhost.localdomain ([2001:871:5e:99b5:1ed4:1131:724f:8ba6]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a9e564c4f67sm67781166b.54.2024.10.31.06.08.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 31 Oct 2024 06:08:00 -0700 (PDT) Message-ID: Subject: Re: COPY documentation with regard to references constraints From: Laurenz Albe To: Bruno Wolff III , pgsql-general@lists.postgresql.org Date: Thu, 31 Oct 2024 14:08:00 +0100 In-Reply-To: <20241031113832.GA3409@wolff.to> References: <20241031113832.GA3409@wolff.to> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.52.4 (3.52.4-2.fc40) MIME-Version: 1.0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk 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= =20 > table with rows referencing others rows in the same table, whether I=20 > 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