pg_restore documentation and --create/--single-transaction limitation

From: Ashutosh Bapat <ashutosh(dot)bapat(dot)oss(at)gmail(dot)com>
To: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: pg_restore documentation and --create/--single-transaction limitation
Date: 2025-03-24 11:41:45
Message-ID: CAExHW5ti5igDwOOde6shgfS7JPtCY9gNrkB3xNr=FuGTYVDSjQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi All,
The pg_restore documentation usually mentions the pair of switches
which can not be used together. However, it does not mention that
--create and --single-transaction can not be used together. Here's a
patch fixing the same.

Looking for a precedence, I found that we have mentioned a similar
limitation concerning --data-only and --schema-only only under
--schema and not at both the sections. Maybe it's missing or we chose
to mention it only at one place. But then I am not sure which one
place I should use to mention the new limitation. So, I have added the
note in the sections corresponding to both the switches so that a user
reading either of them knows about the limitation.

--
Best Wishes,
Ashutosh Bapat

Attachment Content-Type Size
0001-pg_restore-documentation-correction-20250324.patch text/x-patch 1.5 KB

Browse pgsql-hackers by date

  From Date Subject
Next Message Daniel Gustafsson 2025-03-24 12:10:44 Re: Allow default \watch interval in psql to be configured
Previous Message John Naylor 2025-03-24 11:37:42 Re: Improve CRC32C performance on SSE4.2