[pgadmin-support] Explain query

2012-04-18 Thread Bartosz Dmytrak
Hi, I faced strange problem (strange for me): I have written code: WITH t as ( INSERT INTO "tblD1" (id, "Data1") VALUES ('a', 123) RETURNING *) UPDATE "tblBase" SET "SomeData" = 123 WHERE id = 'a'; this code operates on simple tables: CREATE TABLE "tblBase"( id text NOT NULL, "SomeData" in

[pgadmin-support] show application_name

2012-04-18 Thread Luiz Eduardo
Olá pessoal, gostaria de saber como é possível saber o nome da aplicação que está rodando através da query do postgreSQL Estou criado uma função em PL/SQL da seguinte forma: CREATE OR REPLACE FUNCTION audit() RETURNS trigger AS $BODY$ declare sApplication text; begin execute 'show appl