Search Postgresql Archives

Inserting a record into another table ... inside a schema

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I have a public schema with all my tables in it.

I also have a schema for each company that uses our system .. so 300 companies = 300 schemas. One of the tables has a trigger that is trying to insert/update another table that is inside the same schema. So far so good. However when I update the base table in schema “MySchema” the trigger tries to insert/update a record in the public schema and not the “Current” schema (ie the schema of the original table). Is there a system variable for “Current Schema” ? …. If not what is the best way to achieve this ?

 

Thanks

Paul Newman


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux