pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andres Freund <andres@anarazel.de>
To: Ravi Krishna <srkrishna1@aol.com>
Cc: Christopher Browne <cbbrowne@gmail.com>
Cc: laurenz.albe@cybertec.at
Cc: Rob Sargent <robjsargent@gmail.com>
Cc: PostgreSQL Mailing Lists <pgsql-general@postgresql.org>
Subject: Re: COPY threads
Date: Wed, 10 Oct 2018 14:07:29 -0700
Message-ID: <20181010210729.ewntjynvutnlgdn2@alap3.anarazel.de> (raw)
In-Reply-To: <7FCA0163-130B-474D-BE00-3BB5D2E0EC89@aol.com>
References: <065f5e56-5b25-0ce2-e20b-4305f71b2301@gmail.com>
	<d198d930f6c764c8c8667023fc2de333e02ddf46.camel@cybertec.at>
	<20181010192440.cdxues44gcvx2sbi@alap3.anarazel.de>
	<B732777C-37FC-484A-A84B-6A7C20D4D2B5@aol.com>
	<CAFNqd5UMtCNiHsMLkirywcZC=QOE=ThEy1ABn6-+rVC5j73g3Q@mail.gmail.com>
	<7FCA0163-130B-474D-BE00-3BB5D2E0EC89@aol.com>

Hi,

On 2018-10-10 17:02:59 -0400, Ravi Krishna wrote:
> I am talking about pg_restore which is COPY FROM, which takes exclusive lock on the table
> while the data is loaded into the table.

pg_restore doesn't take locks on the table for the COPY, it does so
because creating the table takes an exclusive lock.

Greetings,

Andres Freund




view thread (16+ messages)  latest in thread

Message-ID: <20181010210729.ewntjynvutnlgdn2@alap3.anarazel.de>
Permalink:  ../20181010210729.ewntjynvutnlgdn2@alap3.anarazel.de/
Also on:    postgresql.org/message-id/20181010210729.ewntjynvutnlgdn2@alap3.anarazel.de

 · 

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: andres@anarazel.de, srkrishna1@aol.com, cbbrowne@gmail.com, laurenz.albe@cybertec.at, robjsargent@gmail.com
  Subject: Re: COPY threads
  In-Reply-To: <20181010210729.ewntjynvutnlgdn2@alap3.anarazel.de>
  References: <065f5e56-5b25-0ce2-e20b-4305f71b2301@gmail.com> <d198d930f6c764c8c8667023fc2de333e02ddf46.camel@cybertec.at> <20181010192440.cdxues44gcvx2sbi@alap3.anarazel.de> <B732777C-37FC-484A-A84B-6A7C20D4D2B5@aol.com> <CAFNqd5UMtCNiHsMLkirywcZC=QOE=ThEy1ABn6-+rVC5j73g3Q@mail.gmail.com> <7FCA0163-130B-474D-BE00-3BB5D2E0EC89@aol.com> <20181010210729.ewntjynvutnlgdn2@alap3.anarazel.de>

* 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