From: Ashutosh B. <ash...@en...> - 2012-07-16 11:26:36
|
> In this case you do not need any code! You could also do a simple CREATE > TABLE AS to redistribution the table as you wish to a new table, drop the > old table, and rename the new table with the old name. This could also be > done with 1.0. > You should also have a look at my latest patch, it already includes the > maximum optimizations possible for replicated table redistribution, > particularly distrib.c. Just by looking at that you will see that a node > level control is more than necessary. > This method would change the OID of the table and thus invalidate all the view definitions, rules etc. depending on this table. We don't want that to happen. The function would not change the OID, but would write the data in the table's space itself. > -- > Michael Paquier > http://michael.otacoo.com > -- Best Wishes, Ashutosh Bapat EntepriseDB Corporation The Enterprise Postgres Company |