From: | Eric Smith <eric_h_smith(at)mac(dot)com> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: getting a list of users |
Date: | 2009-05-26 02:57:53 |
Message-ID: | F6ED8E6C-C0FE-4700-8656-BEE3849077FE@mac.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
OK... never mind, everyone. The problem was elsewhere in the code.
Regards,
Eric
On May 25, 2009, at 5:31 PM, Tom Lane wrote:
> Eric Smith <eric_h_smith(at)mac(dot)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
From | Date | Subject | |
---|---|---|---|
Next Message | Craig Ringer | 2009-05-26 04:08:23 | Re: do postgresql this job for me ? (firebird user) |
Previous Message | Eric Smith | 2009-05-26 01:31:01 | Re: getting a list of users |