pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Дмитрий Иванов <firstdismay@gmail.com>
Cc: pgsql-general <pgsql-general@lists.postgresql.org>
Subject: Re: pg_dump insert column GENERATED
Date: Sat, 20 Nov 2021 11:06:50 -0800
Message-ID: <2ea33714-149f-f614-4cdb-012f252d57c0@aklaver.com> (raw)
In-Reply-To: <CAPL5KHqj6Tixp5vc4gye7SG6czfSu1ctLVPRd+-sXE0DAN5tYQ@mail.gmail.com>
References: <CAPL5KHrkBniyQt5e1rafm5DdXvbgiiqfEQEJ9GjtVzN71Jj5pA@mail.gmail.com>
	<d0d559a9-f5f8-dcb6-673c-edeb64f6cf65@aklaver.com>
	<CAPL5KHqj6Tixp5vc4gye7SG6czfSu1ctLVPRd+-sXE0DAN5tYQ@mail.gmail.com>

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





view thread (20+ messages)  latest in thread

Message-ID: <2ea33714-149f-f614-4cdb-012f252d57c0@aklaver.com>
Permalink:  ../2ea33714-149f-f614-4cdb-012f252d57c0@aklaver.com/
Also on:    postgresql.org/message-id/2ea33714-149f-f614-4cdb-012f252d57c0@aklaver.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: adrian.klaver@aklaver.com, firstdismay@gmail.com
  Subject: Re: pg_dump insert column GENERATED
  In-Reply-To: <2ea33714-149f-f614-4cdb-012f252d57c0@aklaver.com>
  References: <CAPL5KHrkBniyQt5e1rafm5DdXvbgiiqfEQEJ9GjtVzN71Jj5pA@mail.gmail.com> <d0d559a9-f5f8-dcb6-673c-edeb64f6cf65@aklaver.com> <CAPL5KHqj6Tixp5vc4gye7SG6czfSu1ctLVPRd+-sXE0DAN5tYQ@mail.gmail.com> <2ea33714-149f-f614-4cdb-012f252d57c0@aklaver.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