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 1moVhb-0001kP-6m for pgsql-general@arkaria.postgresql.org; Sat, 20 Nov 2021 19:07:07 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1moVhY-00008H-QI for pgsql-general@arkaria.postgresql.org; Sat, 20 Nov 2021 19:07:04 +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 1moVhX-000088-8A for pgsql-general@lists.postgresql.org; Sat, 20 Nov 2021 19:07:04 +0000 Received: from out5-smtp.messagingengine.com ([66.111.4.29]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1moVhO-0005Qq-Tr for pgsql-general@lists.postgresql.org; Sat, 20 Nov 2021 19:07:02 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 0331B5C00D8; Sat, 20 Nov 2021 14:06:52 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Sat, 20 Nov 2021 14:06:52 -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=O zE0Ksr7pLBaptqPoKhnAolBfvrouwdWHBH30BMwCuE=; b=LjDj4RocdO9PLhPG6 WmBpQKMwgm8X0jC7h6G5vRzWwttgmbI1uFUHIU2ZjpCUFnqJjsS9g01G5EDNhnvN v+2Px01ZhIphu8u4ZDhpxfRE+ZHZ+JY0VqqK30UwuMo+YZwcZxidw0iRxIm9QBmr xTf61JUZx0vXtB6mhGiGUVesxvKOTzj7aLpVhHvNSCjYy2gY/XmZDn/sUldcv5eb QE5wDezsCMSxhehg/vbtA9PDBRMNAIBT070Ct5BRaPdHZily6vNZ3V3cx+AJrzsa jTKq17yNs52kJwyRgtKM5b/HWNuWvkrs0ohn8MJJww67rpqzum921YL5DqZGNly/ VjWXQ== 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=OzE0Ksr7pLBaptqPoKhnAolBfvrouwdWHBH30BMwC uE=; b=F1G8wYrNpWUFb/EeZAYqYlQoOQHrQhpDCne/xFllvRpwqRNo3uO2U1eBI JiTnJJmR0Mfpp+TMkjCNZRB7l4qJ7vU5G5hI9Y05SMya9AoEIg97SjQ44Vmcvwrh TwkD0qibcCrHSjuu1mziinCsFYV5h7t2fu4q19YvX3t2WcCByqW2h4c9anY/8jfI aJU6KlYqAQ45iuM810mh2im7ykXlljAEcJ2ypS5pDbb1nnsOx6PkZnzF6cx0M8t4 ANv1bQe8JQqEtDqxMMwrZQhdtmjAeYuw4wMcl4Adg70rlVIrZSRtzMfA17CiIHwv YY3az1BdUb4hQPTXOiRkvjGx0P3Xw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvuddrgedtgdduvdduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefkffggfgfuvfhfhfgjtgfgsehtke ertddtfeejnecuhfhrohhmpeetughrihgrnhcumfhlrghvvghruceorggurhhirghnrdhk lhgrvhgvrhesrghklhgrvhgvrhdrtghomheqnecuggftrfgrthhtvghrnhepudfgueelge evfffhgeeljeehhfettdegieelgefgheefffefveegjedtueetffdtnecuvehluhhsthgv rhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprggurhhirghnrdhklhgrvh gvrhesrghklhgrvhgvrhdrtghomh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 20 Nov 2021 14:06:51 -0500 (EST) Message-ID: <2ea33714-149f-f614-4cdb-012f252d57c0@aklaver.com> Date: Sat, 20 Nov 2021 11:06:50 -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: 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 10:33, Дмитрий Иванов wrote: > I don't know. > 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" > I used the pg_dump version of the receiving server, but the pg_dump of > the source server initially gave almost the same result, a COPY error of > the empty table > PostgreSQL 12.9, compiled by Visual C++ build 1914, 64-bit > to > 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 To be clear you used the Postgres 14 version of pg_dump to dump from a Postgres 12 version database, correct? What version of pg_restore did you use to restore to the Postgres 14 database? Where did you install the Postgres 12.9 version package from? -- Adrian Klaver adrian.klaver@aklaver.com