Unix Technical Forum

Standby Mode

This is a discussion on Standby Mode within the pgsql Hackers forums, part of the PostgreSQL category; --> On Wed, 2006-08-02 at 18:49 -0400, Tom Lane wrote: > Simon Riggs <simon@2ndquadrant.com> writes: > > [I have an ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Hackers

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #11 (permalink)  
Old 04-12-2008, 03:50 AM
Simon Riggs
 
Posts: n/a
Default Re: Standby Mode

On Wed, 2006-08-02 at 18:49 -0400, Tom Lane wrote:
> Simon Riggs <simon@2ndquadrant.com> writes:
> > [I have an outstanding question on how to include LWlock support into
> > the archiver, required to flesh out the feature set, and of course
> > assuming these patches being accepted.]

>
> The archiver is deliberately designed not to be connected to shared
> memory. If you want to change that you'll have to make a very strong
> case why we should give up the safety and security advantages of it.


We should let the user decide.

If archiver_timeout is a server start GUC then we can attach to shared
memory if it is set, if not we avoid that.

If they are in a position to want that functionality they can make that
trade-off.

--
Simon Riggs
EnterpriseDB http://www.enterprisedb.com


---------------------------(end of broadcast)---------------------------
TIP 3: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faq

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #12 (permalink)  
Old 04-12-2008, 03:50 AM
Tom Lane
 
Posts: n/a
Default Re: Standby Mode

Simon Riggs <simon@2ndquadrant.com> writes:
> On Wed, 2006-08-02 at 18:49 -0400, Tom Lane wrote:
>> The archiver is deliberately designed not to be connected to shared
>> memory. If you want to change that you'll have to make a very strong
>> case why we should give up the safety and security advantages of it.


> We should let the user decide.


Really? The way we let the user decide whether to run as root or not?
I don't think we make security-related decisions that way.

You haven't actually explained what you want this for, so the entire
discussion is operating in a vacuum ...

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 6: explain analyze is your friend

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #13 (permalink)  
Old 04-12-2008, 03:50 AM
stark
 
Posts: n/a
Default Re: Standby Mode

Tom Lane <tgl@sss.pgh.pa.us> writes:

> Simon Riggs <simon@2ndquadrant.com> writes:
>> On Wed, 2006-08-02 at 18:49 -0400, Tom Lane wrote:
>>> The archiver is deliberately designed not to be connected to shared
>>> memory. If you want to change that you'll have to make a very strong
>>> case why we should give up the safety and security advantages of it.

>
>> We should let the user decide.

>
> Really? The way we let the user decide whether to run as root or not?
> I don't think we make security-related decisions that way.


Well there is also precedent the other way, namely fsync.

I think the key factor is, is it a decision the user may know more about than
we do. In the case of fsync the user may well know that the data isn't
important (yet) such as in the case of an initial database load. In general I
would say security decisions are more prone rather than less to having this
property.

--
Gregory Stark
EnterpriseDB http://www.enterprisedb.com


---------------------------(end of broadcast)---------------------------
TIP 6: explain analyze is your friend

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 09:39 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com