pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrew Dunstan <andrew@dunslane.net>
To: Álvaro Herrera <alvherre@kurilemu.de>
To: Mahendra Singh Thalor <mahi6run@gmail.com>
Cc: pgsql-hackers@lists.postgresql.org
Subject: Re: pgsql: Non text modes for pg_dumpall, correspondingly change pg_restore
Date: Wed, 16 Apr 2025 12:17:53 -0400
Message-ID: <9a1a342a-52fb-4be6-892a-8be387a51792@dunslane.net> (raw)
In-Reply-To: <202504141220.343fmoxfsbj4@alvherre.pgsql>
References: <202504141220.343fmoxfsbj4@alvherre.pgsql>


On 2025-04-14 Mo 8:20 AM, Álvaro Herrera wrote:
> On 2025-Apr-04, Andrew Dunstan wrote:
>
>> Non text modes for pg_dumpall, correspondingly change pg_restore
> I think the new oid_string_list stuff in this commit is unnecessary, and
> we can remove a bunch of lines by simplifying that to using
> SimplePtrList, as the attached illustrates.  (Perhaps the names of
> members of the proposed struct can be improved.)
>
> I also propose to remove the open-coded implementation of pg_get_line.
>
> WDYT?
>
> I'm also not sure about the double sscanf() business there ... There
> must be a better way to do this.
>


Pushed your patch plus cleanup of the sscanf stuff.

Thanks!


cheers


andrew


--
Andrew Dunstan
EDB: https://www.enterprisedb.com






view thread (10+ messages)  latest in thread

Message-ID: <9a1a342a-52fb-4be6-892a-8be387a51792@dunslane.net>
Permalink:  ../9a1a342a-52fb-4be6-892a-8be387a51792@dunslane.net/
Also on:    postgresql.org/message-id/9a1a342a-52fb-4be6-892a-8be387a51792@dunslane.net

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: andrew@dunslane.net, alvherre@kurilemu.de, mahi6run@gmail.com, pgsql-hackers@lists.postgresql.org
  Subject: Re: pgsql: Non text modes for pg_dumpall, correspondingly change pg_restore
  In-Reply-To: <9a1a342a-52fb-4be6-892a-8be387a51792@dunslane.net>

* 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