> > Tem como criar uma Variavel publica no Postgres, que quando eu acesse o meu 
> > sistema, ele grave o usuario logado nessa variavel, e que a trigger dai 
> > utilize essa variavel para armazenar o usuario na tabela???
Até onde eu sei o postgres não trabalha com váriaveis ...
Tente usar tabela temporária [1] para armazenar os valores ...

"TEMPORARY or TEMP
If specified, the table is created as a temporary table. Temporary
tables are automatically dropped at the end of a session, or
optionally at the end of the current transaction (see ON COMMIT
below). Existing permanent tables with the same name are not visible
to the current session while the temporary table exists, unless they
are referenced with schema-qualified names. Any indexes created on a
temporary table are automatically temporary as well. "

[1] http://www.postgresql.org/docs/8.3/static/sql-createtable.html

-- 
Att:
Thiago Risso
_______________________________________________
pgbr-geral mailing list
pgbr-geral@listas.postgresql.org.br
https://listas.postgresql.org.br/cgi-bin/mailman/listinfo/pgbr-geral

Reply via email to