From: Joe Kramer <cckramer@gmail.com>
To: pgsql-general@postgresql.org
Subject: Unable to access table named "user"
Date: Tue, 12 May 2009 17:26:32 +1000
Message-ID: <b4c00a110905120026y69808f7ekcb0489f6112cdf39@mail.gmail.com> (raw)
Hi,
I have table named user (lower case) in public schema.
I can access it using Pgadmin as
SELECT * from "user"; SELECT * from "public.user"; SELECT * FROM public.user;
I can't find any way to access this table from Jdbc.
Tried to access as public.user, user in single and double quotes, nothing helps.
I get exceptions like
ERROR: relation "public.user" does not exist
ERROR: relation "user" does not exist
Also tried to execute "SET search_path TO public" beforehand in same
jdbc connection, makes no difference.
Is there any way?
Thanks.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: cckramer@gmail.com, pgsql-general@postgresql.org
Subject: Re: Unable to access table named "user"
In-Reply-To: <b4c00a110905120026y69808f7ekcb0489f6112cdf39@mail.gmail.com>
References: <b4c00a110905120026y69808f7ekcb0489f6112cdf39@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox