Mon Dec 13 14:00:27 PST 2010
- Previous message: [Slony1-bugs] [Bug 152] Command line argument to only echo DDL on failure
- Next message: [Slony1-bugs] [Bug 53] High memory usage when using high table id
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
http://www.slony.info/bugzilla/show_bug.cgi?id=163 --- Comment #3 from Steve Singer <ssinger at ca.afilias.info> 2010-12-13 14:00:27 PST --- In slony1_funcs.sql log_switch_start() The reason why the now() needed a typecast was because now() returns a timestampz and we were storing just a timestamp. Since we are now storing the full timestampz we don't need the typecast. upgradeSchema() My reading of this function is that it will take ANY table in the slony schema that has a timestamp column and replace it with a timestampz column. I don't think this query is restricting things to the set of slony tables that exist today. If in the future (maybe version 2.2 or 3.5) we add a new column/table and we REALLY do want a timestamp with no time zone then this upgradeSchema() function will still alter the table. If anyone has added a custom table to their slony schema then this query will alter their table as well. (I don't want to encourage people to be adding their own tables to the slony schema; I just don't like the idea of using pattern matching to any table/column in the schema as the target for an alter table). I'd be more comfortable if we filtered on the explicit slony tables we have in 2.0 This section should also have a comment a to what it's for ie -- -- When upgrading to 2.1 the 'timestamp' columns get changed to -- timestampz since we now store the timezone I have not tested this verison of the patch just reviewed it. -- 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.
- Previous message: [Slony1-bugs] [Bug 152] Command line argument to only echo DDL on failure
- Next message: [Slony1-bugs] [Bug 53] High memory usage when using high table id
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Slony1-bugs mailing list