John Sidney-Woollett johnsw
Thu Mar 3 19:57:57 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.

Or have I missed something?

John Sidney-Woollett


More information about the Slony1-general mailing list