Re: getting a list of users
От | Eric Smith |
---|---|
Тема | Re: getting a list of users |
Дата | |
Msg-id | 23B11274-814E-496F-8799-58BEF49C313D@mac.com обсуждение исходный текст |
Ответ на | Re: getting a list of users (Tom Lane <tgl@sss.pgh.pa.us>) |
Список | pgsql-general |
Very interesting. when I set log_statement='all', I see entries for various queries, but I see nothing for the query I list below. If I just use printf() to print out the c-string, it looks just like all the other queries. Eric On May 25, 2009, at 5:31 PM, Tom Lane wrote: > 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 по дате отправления: