-4

I Need a Query of getting the Current Computer name or Terminal Name using PostgreSQL Database Please Give me the solution ASAP

urfrndchandu
  • 11
  • 1
  • 1

1 Answers1

2

Below may work for your needs. If you are on the console be careful with the results, likely you don't want to kill a postgres owned process.

SELECT inet_client_addr();


SELECT * FROM pg_stat_activity
WHERE client_addr = inet_client_addr();

*http://bytes.com/topic/postgresql/answers/423851-retrieve-ip-client-postgres *http://postgresql.1045698.n5.nabble.com/How-to-stop-a-query-td1924086.html