By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,953 Members | 1,161 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,953 IT Pros & Developers. It's quick & easy.

View & search_path

P: 51
postgresql 8.3
Views do not follow search_path. It always uses the tables in the same schema of itself.

Expand|Select|Wrap|Line Numbers
  1. CREATE OR REPLACE VIEW public.admv_acct AS 
  2.  SELECT a.itemno, a.itemtype, a.category, a.itemdesc, a.negativeacct
  3.    FROM adm_items a
  4.   WHERE a.itemtype::text = 'A'::text
  5.   ORDER BY a.itemno;
The adm_items in public is always used.
Jun 17 '11 #1
Share this Question
Share on Google+
1 Reply


Expert 100+
P: 700
Could you post here your search_path set?
Jun 18 '11 #2

Post your reply

Sign in to post your reply or Sign up for a free account.