Bill Moran wmoran at collaborativefusion.com
Wed Oct 1 14:54:32 PDT 2008
I'm trying to do this:
SELECT set_origin FROM sl_set

which works fine _IF_ I have superuser privs, but I need normal users
to be able to query the database to see if they're talking to a master
or a slave system (I know there are other ways to do this, such as
BEGIN; DELETE FROM replicated_table; ROLLBACK, but those methods
generate tons of errors that flood our error management systems, and
then require all sorts of other complexity to manage)

Before I issue a GRANT to allow select rights on that table to anyone
who tries, my questions are:
* Is there any inherent danger in allowing SELECT on that table to
  normal users?
* Is there a better way (I looked for a store procedure, such as
  getlocalnodeid(), but if it exists, I'm not seeing it in the docs)

-- 
Bill Moran
Collaborative Fusion Inc.
http://people.collaborativefusion.com/~wmoran/

wmoran at collaborativefusion.com
Phone: 412-422-3463x4023

****************************************************************
IMPORTANT: This message contains confidential information and is
intended only for the individual named. If the reader of this
message is not an intended recipient (or the individual
responsible for the delivery of this message to an intended
recipient), please be advised that any re-use, dissemination,
distribution or copying of this message is prohibited. Please
notify the sender immediately by e-mail if you have received
this e-mail by mistake and delete this e-mail from your system.
E-mail transmission cannot be guaranteed to be secure or
error-free as information could be intercepted, corrupted, lost,
destroyed, arrive late or incomplete, or contain viruses. The
sender therefore does not accept liability for any errors or
omissions in the contents of this message, which arise as a
result of e-mail transmission.
****************************************************************


More information about the Slony1-general mailing list