From: | Magnus Hagander <magnus(at)hagander(dot)net> |
---|---|
To: | Dimitri Fontaine <dimitri(at)2ndquadrant(dot)fr> |
Cc: | PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: pg_basebackup for streaming base backups |
Date: | 2011-01-16 14:31:50 |
Message-ID: | AANLkTinWyn6HwKt+XKSLnsauocWnOsMTvK+bMi0EDH1C@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Sat, Jan 15, 2011 at 23:10, Dimitri Fontaine <dimitri(at)2ndquadrant(dot)fr> wrote:
>>> That should be -D --pgdata, for consistency with pg_dump.
>>
>> pg_dump doesn't have a -D. I assume you mean pg_ctl / initdb?
>
> Yes, sorry, been too fast.
Ok. Updated patch that includes this change attached. I also changed
the tar directory from -t to -T, for consistency.
It also includes the change to take -h host, -U user, -w/-W for
password -p port instead of a conninfo string.
>> Another option, I think Heikki mentioned this on IM at some point, is
>> to do something like name it <oid>-<name>.tar. That would give us best
>> of both worlds?
>
> Well I'd think we know the pg_tablespace columns encoding, so the
> problem might be the filesystem encodings, right? Well there's also the
Do we really? That's one of the global catalogs that don't really have
an encoding, isn't it?
> option of creating <oid>.tar and have a symlink to it called <name>.tar
> but that's pushing it. I don't think naming after OIDs is a good
> service for users, but if that's all we can reasonably do…
Yeah, symlink seems to be making things way too complex. <oid>-<name>
seems is perhaps a reasonable compromise?
> Will continue reviewing and post something more polished and
> comprehensive next week — mainly wanted to see if you wanted to include
> pg_ctl <command> in the patch already.
Ok, thanks.
--
Magnus Hagander
Me: http://www.hagander.net/
Work: http://www.redpill-linpro.com/
Attachment | Content-Type | Size |
---|---|---|
pg_basebackup.patch | text/x-patch | 37.7 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Magnus Hagander | 2011-01-16 14:35:34 | pg_stat_replication security |
Previous Message | Magnus Hagander | 2011-01-16 14:19:26 | Replication logging |