473,757 Members | 8,356 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Bug Report -- information schema view is broken 'unrecognized privilege type: "RERERENCES "'


I haven't seen it mentioned, but I could have missed it. It seems like this
kind of thing must be known and probably fixed already? I'm actually still
using 7.4 beta 5. IIRC that was the last beta before the release and there
were no changes for 7.4.
db=> select table_name from information_sch ema.tables;
ERROR: unrecognized privilege type: "RERERENCES "

db=> \d information_sch ema.tables
View "information_sc hema.tables"
Column | Type | Modifiers
------------------------------+-----------------------------------+-----------
table_catalog | information_sch ema.sql_identif ier |
table_schema | information_sch ema.sql_identif ier |
table_name | information_sch ema.sql_identif ier |
table_type | information_sch ema.character_d ata |
self_referencin g_column_name | information_sch ema.sql_identif ier |
reference_gener ation | information_sch ema.character_d ata |
user_defined_ty pe_catalog | information_sch ema.sql_identif ier |
user_defined_ty pe_schema | information_sch ema.sql_identif ier |
user_defined_na me | information_sch ema.sql_identif ier |
View definition:
SELECT current_databas e()::character varying::inform ation_schema.sq l_identifier AS table_catalog, nc.nspname::cha racter varying::inform ation_schema.sq l_identifier AS table_schema, c.relname::char acter varying::inform ation_schema.sq l_identifier AS table_name,
CASE
WHEN nc.nspname ~~ like_escape('pg !_temp!_%'::tex t, '!'::text) THEN 'LOCAL TEMPORARY'::tex t
WHEN c.relkind = 'r'::"char" THEN 'BASE TABLE'::text
WHEN c.relkind = 'v'::"char" THEN 'VIEW'::text
ELSE NULL::text
END::informatio n_schema.charac ter_data AS table_type, NULL::informati on_schema.sql_i dentifier::info rmation_schema. sql_identifier AS self_referencin g_column_name, NULL::informati on_schema.chara cter_data::info rmation_schema. character_data AS reference_gener ation, NULL::informati on_schema.sql_i dentifier::info rmation_schema. sql_identifier AS user_defined_ty pe_catalog, NULL::informati on_schema.sql_i dentifier::info rmation_schema. sql_identifier AS user_defined_ty pe_schema, NULL::informati on_schema.sql_i dentifier::info rmation_schema. sql_identifier AS user_defined_na me
FROM pg_namespace nc, pg_class c, pg_user u
WHERE c.relnamespace = nc.oid AND u.usesysid = c.relowner AND (c.relkind = 'r'::"char" OR c.relkind = 'v'::"char") AND (u.usename = "current_user"( ) OR has_table_privi lege(c.oid, 'SELECT'::text) OR has_table_privi lege(c.oid, 'INSERT'::text) OR has_table_privi lege(c.oid, 'UPDATE'::text) OR has_table_privi lege(c.oid, 'DELETE'::text) OR has_table_privi lege(c.oid, 'RULE'::text) OR has_table_privi lege(c.oid, 'RERERENCES'::t ext) OR has_table_privi lege(c.oid, 'TRIGGER'::text ));
Note the "RERERENCES " in the last line of the view definition.
--
greg
---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to ma*******@postg resql.org so that your
message can get through to the mailing list cleanly

Nov 23 '05 #1
3 1772
Greg Stark <gs*****@mit.ed u> writes:
... I'm actually still using 7.4 beta 5.
Naughty naughty.
db=> select table_name from information_sch ema.tables;
ERROR: unrecognized privilege type: "RERERENCES "


Works for me in REL7_4 CVS tip. You could dig in the committers
archives or release notes to see when it was fixed.

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faqs/FAQ.html

Nov 23 '05 #2
On 04 Jun 2004 01:31:05 -0400, Greg Stark <gs*****@mit.ed u> wrote:
using 7.4 beta 5. IIRC that was the last beta before the release and there
were no changes for 7.4.
But there were changes between 7.4 and 7.4.2 ;-) And I believe that
this fix is one of them.
db=> \d information_sch ema.tables
[...]
Note the "RERERENCES " in the last line of the view definition.


This is fixed in current sources.

Servus
Manfred

---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddres sHere" to ma*******@postg resql.org)

Nov 23 '05 #3

Tom Lane <tg*@sss.pgh.pa .us> writes:
Greg Stark <gs*****@mit.ed u> writes:
... I'm actually still using 7.4 beta 5.


Naughty naughty.


Yeah, actually I didn't realize I was behind. I think I was behind because
Debian wanted to update perl in order to upgrade the perl pg driver and...
db=> select table_name from information_sch ema.tables;
ERROR: unrecognized privilege type: "RERERENCES "


Works for me in REL7_4 CVS tip. You could dig in the committers
archives or release notes to see when it was fixed.


Anyways, I just updated and it's gone, but since I had already fixed the view
definition before upgrading that doesn't really prove anything.

7.4.1 does say:

* Fix information schema view constraint_colu mn_usage for foreign
keys (Peter)

Which I presume covered this.

--
greg
---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddres sHere" to ma*******@postg resql.org)

Nov 23 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
3807
by: Thomas R. Hummel | last post by:
I am using SQL Server 2000, SP3. I created an updatable partitioned view awhile ago and it has been running smoothly for some time. The partition is on a DATETIME column and it is partitioned by month. Each month a stored procedure is scheduled that creates the new month's table, and alters the view to include it. Again... working like a charm for quite some time. This past weekend I moved some of the first tables onto a new file...
0
1326
by: Elijah | last post by:
My objective is to send a SOAP formatted request to a web method hosted by the M.S. TerraServer. I use the HTTP Post method. I also use the HttpWebRequest object to build the request. The problem is that I get the wrong answer. In this case I get incorrect coordinates. I can use different inputs and get the same result. I suspect I might be formatting the data types incorrectly. Here is the SOAP Envelope <?xml version="1.0"...
4
1504
by: mike.griffin | last post by:
My name is Mike Griffin and we are adding PostgreSQL support to our product, MyGeneration. MyGeneration pulls meta-data from DBMS systems to generate business objects and stored procedures and such. We are using the .NET managed provider Npgsql.dll. We typically get meta data from OleDb providers and they provide good meta, however, there are none for PostgreSQL that support the meta data services, so we're hitting system tables. I'm...
3
1267
by: Ed L. | last post by:
I see that a newly created database in 8.0.0beta2 now has tables sql_sizing, sql_sizing_profiles, sql_packages, sql_features, sql_implementation_info, and sql_languages as part of the information schema. Given these are system tables, why are these tables not prefixed with 'pg_', as in 'pg_sql_sizing', etc? Ed
6
12185
by: rewindspline | last post by:
hello, i have a simple MS Access 2003 database for producing reports from multiple tables. this morning i made a slight change to some text boxes in the report and now i can't open the report. the change i made was to copy some text boxes from one report to this report (for consistent appearance). there is no response when i double-click on the report inside access. the report will not respond to desgn view, print preview or export and...
1
2725
by: tbehmand | last post by:
Hi I am getting the following message when I click on 'Create report in Design view', does anyone know how to fix this. "There was a problem retrieving printer information for this object. The object may have been sent to a printer that is unavailable." Also when I perform the steps using the create report wizard I get "The wizard is unable to create your report." I would appreciate any assistance you can give me in this regard. ...
0
711
by: udd | last post by:
How do I get all the table information(table names) used by a Procedure(datasource of the crystal report) in a crystal report using .Net.I need to get all the tables names from the procedure and plus LOV(list of values) names too.
0
1493
by: nustapha | last post by:
Hi, I can see foreign keys in the information schema db in mysql but there is no information about 'on delete cascade' or 'on update...'. How can I get all information about foreign keys?
0
1684
by: itsbhabesh | last post by:
i have gridview created dynamically. i just want to print it by crystalreport. can any on esay how it is possible to pass data from grid view to a crystal report . while doing this i m getting an error "invalid report file path" or "Load report failed"
0
9489
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9298
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10072
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9885
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7286
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6562
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5329
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3829
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3399
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.