vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| The following bug has been logged online: Bug reference: 2850 Logged by: Tony Marston Email address: tony@marston-home.demon.co.uk PostgreSQL version: 8.2 Operating system: Windows XP Description: Cannot select from information_schema.schemat Details: If I am logged on as a user other than 'postgres' and I try the query SELECT * FROM information_schema.schemata I get no results. Yet if I try the equivalent query SELECT * FROM pg_namespace I can see all the available schema names. Why is there a difference when the two queries are supposed to provide the same results? ---------------------------(end of broadcast)--------------------------- TIP 4: Have you searched our list archives? http://archives.postgresql.org |
| ||||
| "Tony Marston" <tony@marston-home.demon.co.uk> writes: > If I am logged on as a user other than 'postgres' and I try the query > SELECT * FROM information_schema.schemata > I get no results. Yet if I try the equivalent query > SELECT * FROM pg_namespace > I can see all the available schema names. > Why is there a difference when the two queries are supposed to provide the > same results? They're not "supposed to provide the same results". Per SQL99, the schemata view is supposed to Identify the schemata in a catalog that are owned by a given user. and the SQL definition in the spec makes it clear that it only shows schemas owned by CURRENT_USER or a role that CURRENT_USER is a member of. regards, tom lane ---------------------------(end of broadcast)--------------------------- TIP 9: In versions below 8.0, the planner will ignore your desire to choose an index scan if your joining column's datatypes do not match |