From: | Bruce Momjian <bruce(at)momjian(dot)us> |
---|---|
To: | Peter Eisentraut <peter_e(at)gmx(dot)net> |
Cc: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Dimitri Fontaine <dimitri(at)2ndQuadrant(dot)fr>, Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>, Robert Haas <robertmhaas(at)gmail(dot)com>, Pg Hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: -Wformat-zero-length |
Date: | 2012-08-25 20:25:45 |
Message-ID: | 20120825202545.GB10814@momjian.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Tue, Aug 14, 2012 at 11:54:53PM -0400, Peter Eisentraut wrote:
> On Tue, 2012-08-14 at 17:56 -0400, Tom Lane wrote:
> > Peter Eisentraut <peter_e(at)gmx(dot)net> writes:
> > > On 8/10/12 7:48 PM, Dimitri Fontaine wrote:
> > >> What about having single user mode talk fe/be protocol, and talk to it via a UNIX pipe, with pg_upgrade starting the single user backend as a subprocess?
> >
> > > I think that's essentially equivalent to starting the server on a
> > > Unix-domain socket in a private directory. But that has been rejected
> > > because it doesn't work on Windows.
> >
> > > The question in my mind is, is there some other usable way on Windows
> > > for two unrelated processes to communicate over file descriptors in a
> > > private and secure way?
> >
> > You're making this unnecessarily hard, because there is no need for the
> > two processes to be unrelated.
> >
> > The implementation I'm visualizing is that a would-be client (think psql
> > or pg_dump, though the code would actually be in libpq) forks off a
> > process that becomes a standalone backend, and then they communicate
> > over a pair of pipes that were created before forking. This is
> > implementable on any platform that supports Postgres, because initdb
> > already relies on equivalent capabilities.
>
> Well, that would be an interesting feature, but it's debatable which
> among this or just adding a new socket type (if available) is harder.
TODO added:
Find cleaner way to start/stop dedicated servers for upgrades
http://archives.postgresql.org/pgsql-hackers/2012-08/msg00275.php
--
Bruce Momjian <bruce(at)momjian(dot)us> http://momjian.us
EnterpriseDB http://enterprisedb.com
+ It's impossible for everything to be true. +
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 2012-08-25 20:46:51 | Re: pg_stat_replication vs StandbyReplyMessage |
Previous Message | Kohei KaiGai | 2012-08-25 19:48:17 | Re: [v9.3] writable foreign tables |