>Hi Haris 
> 
>Haris Susanto wrote: 
>> 
>> Hi, 
>> 
>> Can I print the output from comamnd \d ? 
> 
>Check the man page but I think it is some thing like this: 
> 
>psql -c "\\d" | lpr 
>or ... > tmpfile 
> 

It works !
Thanks Terry, but I have another question :

I develop program with perl and connect to Postrges, and I want to know the
message that come out every we do any command. For example if we type
command "insert into mytable value('myvalue');" and it succeses, the
message will be "Insert 5423 ...". (note : 5423 is example only). Or may be
fail and the message would be "error near ','" or something else. What I
want is how I can know the message from perl ?

I use 
$message = $conn->$status 
But always results "0".

May be you can help me again ?

Thanks again !

-haris-

PS. Where should I send the message, pgsql-admin-digest or pgsql-admin ?

Reply via email to