Thiago.... a tabela temporaria funciona... porem acredito que para o meu 
caso ela nao seja muito aconcelhavel....

Sera que não tem como eu setar uma variavel do proprio postgres que ele nao 
utilize... tipo alguma variavel que ele utilize para comentario, por 
exemplo???

Ou se eu pegar e criar um usuario no postgres para cada usuario que eu criar 
no meu sistema... isso e aconcelhavel???

Grato pela Ajuda


----- Original Message ----- 
From: "Thiago Risso" <[EMAIL PROTECTED]>
To: "Comunidade PostgreSQL Brasileira" <[email protected]>
Sent: Tuesday, December 04, 2007 10:07 PM
Subject: Re: [pgbr-geral] Variaveis no Postgres


> > 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
[email protected]
https://listas.postgresql.org.br/cgi-bin/mailman/listinfo/pgbr-geral 

_______________________________________________
pgbr-geral mailing list
[email protected]
https://listas.postgresql.org.br/cgi-bin/mailman/listinfo/pgbr-geral

Responder a