Re: pg_dump LOCK TABLE ONLY question - Mailing list pgsql-hackers

From Tom Lane
Subject Re: pg_dump LOCK TABLE ONLY question
Date
Msg-id 2072.1443365438@sss.pgh.pa.us
Whole thread Raw
In response to pg_dump LOCK TABLE ONLY question  (Filip Rembiałkowski <filip.rembialkowski@gmail.com>)
List pgsql-hackers
Filip Rembiałkowski <filip.rembialkowski@gmail.com> writes:
> I'm running pg_dump constrained to one schema. It appears that pg_dump runs

> "LOCK TABLE %s IN ACCESS SHARE MODE" for each table.

> Naturally it makes sense, but...

> This schema has a table that serves as parent for thousands of child
> tables (via INHERITS).

> So effectively, to dump this schema, I have to LOCK all these tables
> not only parent.

They'd all end up locked anyway wouldn't they?
        regards, tom lane



pgsql-hackers by date:

Previous
From: David Rowley
Date:
Subject: Re: PATCH: use foreign keys to improve join estimates v1
Next
From: Alvaro Herrera
Date:
Subject: Re: Patch: Optimize memory allocation in function 'bringetbitmap'