Thu Jul 22 00:08:46 PDT 2004
- Previous message: [Slony1-general] Table Selection
- Next message: [Slony1-general] Table Selection
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Jul 18, 2004, at 10:57 PM, Christopher Browne wrote: > I have a set of Perl scripts for controlling a cluster that I'll be > checking in Real Soon Now. > > Unlike the monolithic script that is in the distribution now that asks > all > sorts of questions, my toolset grabs cluster config from a config file, > and then has a script for each of a variety of major actions you'd > want to > invoke on the cluster. It doesn't yet include scripts for shifting the > origin; that will presumably come soon enough... So this doesn't fully answer my question about the status of slonik. Has the concept of a set of Perl scripts met with wider developer and community approval? Does it make the most sense for propagation of Slony in terms of it becoming the generally accepted (or one of the generally accepted) replication solutions for postgres? I'm not trying to be antagonistic; I'm just trying to understand the development process and rationale and play a bit of devil's advocate. > One of the assumptions is that there will be, available, a list of all > of > the relevant relations that are to be replicated. Available to the script or made available by the script? > I don't see any way to generalize that in any "vast" way. Just based on my limited exposure to and use of slony thus far, I would think it wouldn't be too nonsensical to have slonik commands that correspond to your sets as outlined below: > My assumption > is that the lists exist as the following sets: > > - A list of tables that have primary key candidates; > > - A list of tables for which Slony-I will need to add a primary key > candidate; > > - A list of sequences that are to be replicated. For instance, why not create slonik commands like SET ADD UNIQUELY CONSTRAINED TABLES SET ADD UNCONSTRAINED TABLES SET ADD ALL TABLES SET ADD ALL SEQUENCES > Stick those three things in a config file, and it's dead easy to > generate > a suitable "create set" that first adds PK candidates and then builds > the > set of all the tables. Again, my point would be why not (plan to) have slonik handle this work for you? > If you have thousands of relations, you'll probably need to build > queries > to look for them. At that point, throwing them into a file should be > no > big deal. Yeah, that's what I'm currently working on. > I would be reluctant to add functionality to try to do that > automagically; > the more sophisticated scripts get, the more their actions resemble > magick, and the more difficult it is to convince a DBA to trust them > :-(. Well, isn't programming in general just scripting writ a bit larger? I mean, what's the difference between a slonik command that grabs all user relations and postgres itself in general. If a DBA trusts the DBMS, then the DBA ought to be able to have some trust in the extended development community that organizes around the DBMS. > That strikes me as being a problem with the present "monolithic Perl > script;" it's a bit too big and hairy for me to trust it. And that's part of my point. One of the reasons I didn't use slony_setup.pl right off the bat just to make sure my development environment was properly configured for testing was because I noticed that it presumed the existence of a slony user rather than allowing you to specify a user. But now that the 1.0 release is out the door, it would seem like the next step would be a gathering of user feedback, developer interest, and the creation of a TODO list as exists for the core postgres distro, along with a hackers list for discussion amongst the core developers as to strategy and ongoing development. Just some thoughts on the process based purely on my attempts to use the current interface. -tfo
- Previous message: [Slony1-general] Table Selection
- Next message: [Slony1-general] Table Selection
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Slony1-general mailing list