pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ravi Krishna <s_ravikrishna@aol.com>
To: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Speeding up adding fky on a very large table
Date: Wed, 19 Oct 2022 13:31:49 +0000 (UTC)
Message-ID: <1365946824.316128.1666186309386@mail.yahoo.com> (raw)
References: <1365946824.316128.1666186309386.ref@mail.yahoo.com>

AWS Aurora based on PG 13.

Large partitioned table of 5+ billion rows and 7TB in size.
ALTER TABLE abc ADD CONSTRAINT fk_123 FOREIGN KEY (a,b,c) REFERENCES xyz(1,2,3);
It seems this is not parallelized. Is there a way. Or directly going into each partition is the only way ( not even sure it is possible).

view thread (3+ messages)  latest in thread

Message-ID: <1365946824.316128.1666186309386@mail.yahoo.com>
Permalink:  ../1365946824.316128.1666186309386@mail.yahoo.com/
Also on:    postgresql.org/message-id/1365946824.316128.1666186309386@mail.yahoo.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: s_ravikrishna@aol.com
  Subject: Re: Speeding up adding fky on a very large table
  In-Reply-To: <1365946824.316128.1666186309386@mail.yahoo.com>
  References: <1365946824.316128.1666186309386.ref@mail.yahoo.com> <1365946824.316128.1666186309386@mail.yahoo.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox