Addendum: Some minutes ago, using EMS SQL Manager Lite, I tried what I was asking. First, I created a new schema. Then, I duplicated some of the transactional tables from the public schema, which is acting as a definition repository for those tables, to the new "transactional" schema. After that, the serial sequence was created in the test schema. The only caution is to inspect the sql to be executed, checking to which schema points every foreign key; the default, obviously, is public. That is OK when the FK goes to one of the reference tables; but must be changed when it must go to another transactional one. The example would be "order" and "order_detail": customer, product, etc must be referenced from public, but the FK from order_detail must point to season.order. So, the question is solved, at least using some "postgresql complaint" tool. Marcelo On 29/07/17 17:17, Melvin Davidson
wrote:
|