Search Postgresql Archives

Re: getting a list of users

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Eric Smith <eric_h_smith@xxxxxxx> writes:
> Seems to work just fine.  If, on the other hand, I issue the same  
> command from within the C API:

> NSString* query = [NSString stringWithFormat:@"SELECT usename FROM  
> pg_catalog.pg_user"];
> 	postgresResult = PQexec(myConnection, [query UTF8String]);

> I get an error, extracted via:

You sure that thing is sending the string you think it is?  I'd
try turning on log_statement and looking in the postmaster log
to see what it thinks it's getting.

			regards, tom lane

-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux