pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Santosh Udupi <email@hitha.net>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: pg_restore - generated column - not populating
Date: Tue, 23 Feb 2021 07:26:57 -0800
Message-ID: <89a62c70-4386-a3ef-f2ea-5e0f448cef11@aklaver.com> (raw)
In-Reply-To: <CACLRvHaB_mLCygA6AQnc5jh+cBme2A-=Su9oDyO4O20k5ZSKSw@mail.gmail.com>
References: <CACLRvHZ4a-+SM_159+tcrHdEqxFrG=W4gwTRnwf7Oj0UNj5R2A@mail.gmail.com>
	<9881df8c-f88e-977e-f222-adb04ba1ec80@aklaver.com>
	<CACLRvHY+bD8R-=BWP6U5fBNu0qm_uevhjq6GJekMhPJ1Wyxghw@mail.gmail.com>
	<CACLRvHYOp4uFbJPk_J35oDWs+fv_bpV0LrBQ4dJda_mWKgupUw@mail.gmail.com>
	<CACLRvHYzbfhkg6Z2=HdrKv6YhcipXgnyMhEz0xx1dSALDcn_hQ@mail.gmail.com>
	<ab320161-2511-2559-b190-f71b07b5d089@aklaver.com>
	<CACLRvHaB_mLCygA6AQnc5jh+cBme2A-=Su9oDyO4O20k5ZSKSw@mail.gmail.com>

On 2/23/21 6:36 AM, Santosh Udupi wrote:
> The pg_restore command is actually pg_restore -Ft -d mydb mydb.tar (my 
> mistake).
> 
> I didn't provide the -h -p -U since I use the super user account to 
> restore (I will try adding them). The restore had always worked until I 
> altered the table in the source database.
> 
> After I added the column, the restore still takes place but does not 
> populate the generated column. I did a backup using pgAdmin and the 
> restore populated all data using the same syntax on the tar file. So my 
> suspicion is that pg_dump is not doing the dump correctly. I will work 
> on it further. Thanks for your suggestions.
> 

pgAdmin uses pg_dump to do backups.


-- 
Adrian Klaver
adrian.klaver@aklaver.com





view thread (26+ messages)  latest in thread

Message-ID: <89a62c70-4386-a3ef-f2ea-5e0f448cef11@aklaver.com>
Permalink:  ../89a62c70-4386-a3ef-f2ea-5e0f448cef11@aklaver.com/
Also on:    postgresql.org/message-id/89a62c70-4386-a3ef-f2ea-5e0f448cef11@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-bugs@postgresql.org
  Cc: adrian.klaver@aklaver.com, email@hitha.net, pgsql-general@lists.postgresql.org
  Subject: Re: pg_restore - generated column - not populating
  In-Reply-To: <89a62c70-4386-a3ef-f2ea-5e0f448cef11@aklaver.com>
  References: <CACLRvHZ4a-+SM_159+tcrHdEqxFrG=W4gwTRnwf7Oj0UNj5R2A@mail.gmail.com> <9881df8c-f88e-977e-f222-adb04ba1ec80@aklaver.com> <CACLRvHY+bD8R-=BWP6U5fBNu0qm_uevhjq6GJekMhPJ1Wyxghw@mail.gmail.com> <CACLRvHYOp4uFbJPk_J35oDWs+fv_bpV0LrBQ4dJda_mWKgupUw@mail.gmail.com> <CACLRvHYzbfhkg6Z2=HdrKv6YhcipXgnyMhEz0xx1dSALDcn_hQ@mail.gmail.com> <ab320161-2511-2559-b190-f71b07b5d089@aklaver.com> <CACLRvHaB_mLCygA6AQnc5jh+cBme2A-=Su9oDyO4O20k5ZSKSw@mail.gmail.com> <89a62c70-4386-a3ef-f2ea-5e0f448cef11@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