Thu Jun 7 12:03:21 PDT 2007
- Previous message: [Slony1-general] How to determine if the node I'm connecting to is the master
- Next message: [Slony1-general] How to determine if the node I'm connecting to isthe master
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
> I have a need to connect to a database, and quickly and easily determine
> whether it is the slony master or a slony slave.
I use (for cluster _T1)
select "_T1".getlocalnodeid('_T1') = (select set_origin from "_T1".sl_set
limit 1);
which presumes that all sets have the same origin -- otherwise you can
specify the set in the query.
Julian
- Previous message: [Slony1-general] How to determine if the node I'm connecting to is the master
- Next message: [Slony1-general] How to determine if the node I'm connecting to isthe master
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Slony1-general mailing list