slony1-bugs at lists.slony.info slony1-bugs at lists.slony.info
Thu Mar 27 13:00:24 PDT 2008
http://www.slony.info/bugzilla/show_bug.cgi?id=43

           Summary: get_set() is used inconsistently in altperl tools
           Product: Slony-I
           Version: 1.2
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: minor
          Priority: medium
         Component: altperl
        AssignedTo: slony1-bugs at lists.slony.info
        ReportedBy: mark at summersault.com
                CC: slony1-bugs at lists.slony.info
   Estimated Hours: 0.0


One of the nice features of the altperl tools is the potential to use memorable
names for sets instead of numbers. 

However, I have to say "potential" because this feature is not supported
throughout all of the tools. 

The following tools use the "get_set" method, which enables this:

/usr/local/sbin/slonik_create_set
/usr/local/sbin/slonik_drop_set
/usr/local/sbin/slonik_drop_table
/usr/local/sbin/slonik_execute_script
/usr/local/sbin/slonik_subscribe_set

However, the following scripts use a more primitive method of getting the set
ID, allowing it only be either a number or the word "set", followed by a
number:

/usr/local/sbin/slonik_drop_set
/usr/local/sbin/slonik_execute_script
/usr/local/sbin/slonik_merge_sets
/usr/local/sbin/slonik_move_set
/usr/local/sbin/slonik_subscribe_set
/usr/local/sbin/slonik_unsubscribe_set

Until these are also refactored to also use "get_set()", using memorable names
as set identifiers is not possible. 

Thanks!

   Mark


-- 
Configure bugmail: http://www.slony.info/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
You are the assignee for the bug.


More information about the Slony1-bugs mailing list