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 1mobok-00083X-3n for pgsql-general@arkaria.postgresql.org; Sun, 21 Nov 2021 01:38:54 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1moboi-00050s-Vu for pgsql-general@arkaria.postgresql.org; Sun, 21 Nov 2021 01:38:52 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1moboh-00050i-Uw for pgsql-general@lists.postgresql.org; Sun, 21 Nov 2021 01:38:52 +0000 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1moboe-00005b-1i for pgsql-general@lists.postgresql.org; Sun, 21 Nov 2021 01:38:51 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id A95CC3200904; Sat, 20 Nov 2021 20:38:45 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Sat, 20 Nov 2021 20:38:45 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= message-id:date:mime-version:subject:to:cc:references:from :in-reply-to:content-type:content-transfer-encoding; s=fm1; bh=f Oc0045FKJ18j2pK3WbE8QYrLEb+W9S/FmHx8Nijt34=; b=NsKOzx305BZsLnv3b 2xO28lD9VzPT76OA/H/+ioWzVinrPVY+kuMnrg6wit1afn7fb3pfErbLyHDCVdWr borqL/6Z3KIox0otkNLJpOQPWrWgilmQQCpqIPpfWoD25L7/R3seu+lecxbpEEIv y7Nf4f4JfPIojl9HpXL6zc9iplkvidRpe8RPnHMVYgUXCzvFD48bkE6ppyPeYmS8 EZ4PwobUdO2ebll2oLeXzTwAOE/XfIUE/xxQYR4mUP4kaKG0mvxDDNr41c1Q9ZD9 Cpj7bcJbdyy/k8Ipip5FaWoN2SNXY0TvQQfXRUKfHXMLM5ynuTFzp33KSgcmUvTU VZD3w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=fOc0045FKJ18j2pK3WbE8QYrLEb+W9S/FmHx8Nijt 34=; b=O3rJJUDys/JVQqVKTf7y81w+RxDdLBEj3IcdJamQK04ZFdpsv/uz6Glbn kDDHChdgtwRLx8Uxb5cx09zXlZwWSLKqbTkSVhXsxyopcfu28qLVtVTlPt2nuQ9l exA44o7GAF1JlggaRBRQDD3gngYlyvMifSJaepA4mqXZ2mUDFKTVzDkWhT8byrSG k1OlURCrRzOpPJsp8lpk3eZGI3LSYp0miedSYIqIE0vt1nihemFuNLcHEhicQo3z 2/wXOhLRaufKoGOMgCIMHT3jRN7tdAtoVrZS6FGERMVV/hcW5b91eLQ+O1KpDFd6 Yu7aH2C2ZXPJeMQ4vU6HhS/DxsJww== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvuddrgedugdefiecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepkfffgggfuffvfhfhjggtgfesthekre dttdefjeenucfhrhhomheptegurhhirghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhl rghvvghrsegrkhhlrghvvghrrdgtohhmqeenucggtffrrghtthgvrhhnpedugfeuleegve ffhfegleejhefhtedtgeeileeggfehfefffeevgeejtdeutefftdenucevlhhushhtvghr ufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrughrihgrnhdrkhhlrghvvg hrsegrkhhlrghvvghrrdgtohhm X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 20 Nov 2021 20:38:44 -0500 (EST) Message-ID: Date: Sat, 20 Nov 2021 17:38:44 -0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.3.1 Subject: Re: pg_dump insert column GENERATED Content-Language: en-US To: =?UTF-8?B?0JTQvNC40YLRgNC40Lkg0JjQstCw0L3QvtCy?= Cc: pgsql-general References: <2ea33714-149f-f614-4cdb-012f252d57c0@aklaver.com> From: Adrian Klaver In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 11/20/21 17:11, Дмитрий Иванов wrote: > Yes and yes. > I ended up using the pg_dump of the receiving server. > > sudo /usr/lib/postgresql/14/bin/pg_dump --file > "/home/dismay/uchet/Uchet.backup" --host "server" --port "5999" > --username "back" --no-password --verbose --format=c > --quote-all-identifiers --blobs  --column-inserts --inserts --create > --disable-triggers  --encoding="UTF8" "Uchet" > > sudo /usr/lib/postgresql/14/bin/pg_restore --host "127.0.0.1" --port > "5432" --username "back" --no-password --dbname "Uchet" > --disable-triggers --format=c --create --verbose > "/home/dismay/uchet/Uchet.backup" > > sudo /usr/lib/postgresql/14/bin/pg_restore --host "127.0.0.1" --port > "5432" --username "back" --no-password --dbname "Uchet" > --disable-triggers --table="bpd.object" --format=c --verbose > "/home/dismay/uchet/Uchet.backup" > > Receiving server: > PostgreSQL 14.1 (Debian 14.1-1.pgdg110+1) on x86_64-pc-linux-gnu, > compiled by gcc (Debian 10.2.1-6) 10.2.1 20210110, 64-bit > > Server source: > PostgreSQL 12.9, compiled by Visual C++ build 1914, 64-bit > EDB assembly installed from "Application Stack Builder" > > вс, 21 нояб. 2021 г. в 00:06, Adrian Klaver