Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mfjXb-0007fm-Uv for pgsql-general@arkaria.postgresql.org; Wed, 27 Oct 2021 14:04:31 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mfjXa-0003an-U3 for pgsql-general@arkaria.postgresql.org; Wed, 27 Oct 2021 14:04:30 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mfjXa-0003aX-KQ for pgsql-general@lists.postgresql.org; Wed, 27 Oct 2021 14:04:30 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mfjXY-0006Qt-Dj for pgsql-general@postgresql.org; Wed, 27 Oct 2021 14:04:29 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 19RE4QRQ239444; Wed, 27 Oct 2021 10:04:26 -0400 From: Tom Lane To: Tore Halvorsen cc: Postgres General Subject: Re: pg_dump and pg_restore and foreign keys In-reply-to: References: <237198.1635341271@sss.pgh.pa.us> Comments: In-reply-to Tore Halvorsen message dated "Wed, 27 Oct 2021 15:50:23 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <239442.1635343466.1@sss.pgh.pa.us> Date: Wed, 27 Oct 2021 10:04:26 -0400 Message-ID: <239443.1635343466@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Tore Halvorsen writes: > That would be appending it for "pg_catalog.pg_get_constraintdef(oid) AS > condef" in getConstraints in pg_dump.c? No, you want to mess with the text printed by dumpConstraint(). regards, tom lane