Vinicius escreveu:
> Bom dia pessoal.
> Gostaria de saber se alguém já usou o PostgreSQL para "conversar" com
> uma aplicação através de socket.
>
> Eu queria que o postgres, trabalhasse como SeverSocket e mandasse uma
> mensagem para uma aplicação cliente(Client Socket)...
>
> Alguém já fez algo parecido ?
>
> Obrigado
>
nunca fiz isso
mas da uma olhada [1]
...
unix_socket_directory (string)
Specifies the directory of the Unix-domain socket on which the
server is to listen for connections from client applications. The
default is normally /tmp, but can be changed at build time. This
parameter can only be set at server start.
...
e dependendo do que vc precisa fazer tb pode usar o Exit Status do
teminal interativo psql [2]
...
Exit Status
psql returns 0 to the shell if it finished normally, 1 if a fatal error
of its own (out of memory, file not found) occurs, 2 if the connection
to the server went bad and the session was not interactive, and 3 if an
error occurred in a script and the variable ON_ERROR_STOP was set.
...
[1]
http://www.postgresql.org/docs/8.3/interactive/runtime-config-connection.html
[2] http://www.postgresql.org/docs/8.3/interactive/app-psql.html
----------------------------------------------------------------------------------
Esta mensagem foi verificada pelo sistema de Anti-virus da SJB Solados.
_______________________________________________
pgbr-geral mailing list
[email protected]
https://listas.postgresql.org.br/cgi-bin/mailman/listinfo/pgbr-geral