Re: getting a list of users - Mailing list pgsql-general

From Tom Lane
Subject Re: getting a list of users
Date
Msg-id 11002.1243297906@sss.pgh.pa.us
Whole thread Raw
In response to Re: getting a list of users  (Eric Smith <eric_h_smith@mac.com>)
Responses Re: getting a list of users  (Eric Smith <eric_h_smith@mac.com>)
Re: getting a list of users  (Eric Smith <eric_h_smith@mac.com>)
Re: getting a list of users  (Eric Smith <eric_h_smith@mac.com>)
List pgsql-general
Eric Smith <eric_h_smith@mac.com> 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

pgsql-general by date:

Previous
From: Eric Smith
Date:
Subject: Re: getting a list of users
Next
From: Eric Smith
Date:
Subject: Re: getting a list of users