murphy pope pope_murphy
Thu Mar 3 20:41:06 PST 2005
> murphy pope wrote:
> >>The Named Node "Debacle"
> >>---------------------------
> >>
> >>I wanted to be able to attach a "node name" attribute to each node,
> >>and then be able to replace:
> >>
> >>STORE LISTEN ( ORIGIN = 1, RECEIVER = 2, PROVIDER = 3 );
> >>
> >> with, let's say:
> >>
> >>STORE LISTEN ( ORIGIN NODE = 'org master', RECEIVER NODE = 'data warehouse', PROVIDER NODE = 'whois server' );
> >>
> >>I'm sure you'll agree that the latter is much more mnemonic than
> >>something involving perhaps-cryptic numbers :-).
> >>
> 
> Why not just use shell variables instead? eg
> 
> ORG_MASTER=1
> DATA_WAREHOUSE=2
> WHOIS_DB=3
> 
> STORE LISTEN( ORIGIN=$ORG_MASTER, RECEIVER=$WAREHOUSE, PROVIDER=$WHOIS_DB );
> 
> They're only defined once, and are just as descriptive inside the slonik 
> script file.


Shell variables don't work in a slonik script - they work in a shell
script wrapped around a slonik script. 

  ++ Murphy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gborg.postgresql.org/pipermail/slony1-general/attachments/20050303/fabd1ecb/attachment.html


More information about the Slony1-general mailing list