From josh at agliodbs.com Thu Mar 9 23:15:13 2006 From: josh at agliodbs.com (Josh Berkus) Date: Thu, 9 Mar 2006 15:15:13 -0800 Subject: [Configurator-hackers] conf file converter Message-ID: <200603091515.13283.josh@agliodbs.com> Aurynn, Here's the spec: Supplied to the converter will be: 1 old conf file 1 new conf file old version number new version number configuration matching table for names which have changed (format to be determined) example: 7.4 8.0 8.1 sort_mem work_mem work_mem The script should, based on the old conf file and the matching table, go through the new conf file one row at a time and set any of the variables which are set in the old file to the same values in the new conf file, and the same commented/uncommented status, ignoring values which were commented out in the old file. But it should do it one line at a time so that the ordering and layout of the new file are preserved. As a bonus, it would be nice to be able to handle special variable conversions, like if a 7.3 file has "tcp_ip = on" then the target 8.1 file should be set "listen_addresses='*'". Howerver, this may prove more trouble than it's worth. -- --Josh Josh Berkus Aglio Database Solutions San Francisco