473,508 Members | 2,396 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

information schema table names in 8.0.0


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
---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://archives.postgresql.org

Nov 23 '05 #1
3 1249
On Wednesday September 8 2004 1:50, Ed L. wrote:
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?


For years we have long used the fact that pgsql system tables are prefixed
with 'pg_' in various DBA utilities (e.g., dampen noise when querying
pg_tables/pg_class), and more recently to auto-initialize replication for
user tables only. Changing that convention breaks our stuff. I realize
this information schema horse left the barn a year ago, I'm only now seeing
it as we skipped 7.4 altogether. Just curious if there is good reason for
the change in convention, so as to ease my pain.

Ed
---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to ma*******@postgresql.org so that your
message can get through to the mailing list cleanly

Nov 23 '05 #2
On Wed, Sep 08, 2004 at 02:02:54PM -0600, Ed L. wrote:
On Wednesday September 8 2004 1:50, Ed L. wrote:
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?


For years we have long used the fact that pgsql system tables are prefixed
with 'pg_' in various DBA utilities (e.g., dampen noise when querying
pg_tables/pg_class), and more recently to auto-initialize replication for
user tables only. Changing that convention breaks our stuff. I realize
this information schema horse left the barn a year ago, I'm only now seeing
it as we skipped 7.4 altogether. Just curious if there is good reason for
the change in convention, so as to ease my pain.


The names are defined in the SQL standard, so they are not really open
for debate.

What you should use to filter out system objects from listings is schema
names. Anything in the pg_catalog and information_schema schemas can be
filtered out. In fact, that's what psql does now.

--
Alvaro Herrera (<alvherre[a]dcc.uchile.cl>)
"Cada quien es cada cual y baja las escaleras como quiere" (JMSerrat)
---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster

Nov 23 '05 #3
On Wed, 8 Sep 2004, Ed L. wrote:
On Wednesday September 8 2004 1:50, Ed L. wrote:
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?


For years we have long used the fact that pgsql system tables are prefixed
with 'pg_' in various DBA utilities (e.g., dampen noise when querying
pg_tables/pg_class), and more recently to auto-initialize replication for
user tables only. Changing that convention breaks our stuff. I realize
this information schema horse left the barn a year ago, I'm only now seeing
it as we skipped 7.4 altogether. Just curious if there is good reason for
the change in convention, so as to ease my pain.


INFORMATION_SCHEMA and its contents are part of the SQL spec.
---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddressHere" to ma*******@postgresql.org)

Nov 23 '05 #4

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

Similar topics

6
3088
by: btober | last post by:
Is there a way to get a dump of all the DDL and data associated with a single schema within a database? What I tried in attempting to hack this out was \dt consume.* and \dv consume.*
4
2179
by: Philip Rayne | last post by:
Probably a bit of a newbie question this. I have an XML file like this: <?xml version="1.0" standalone="yes"?> <AuditLogonGroup xmlns="http://tempuri.org/AuditLogon.xsd"> <AuditLogon>...
7
7367
by: Robert Stearns | last post by:
I ran the following bit of SQL and my PRIMARY KEY wound up in schema SYSIBM called SQL.... not schema is3 called primary. The index registation did wind up there. Obviously there's something I...
5
4633
by: dave71 | last post by:
Hi Could someone please advise me how to remove the schema name from linked tables within Access. For example when I connect to a Oracle database via Microsoft ODCB for Oracle the list of...
1
1856
by: Gary Warner | last post by:
Using Visual Basic with an ADO connection to MS-Access, I'd like to be able to pull the names of all tables, the column names in those tables, and the field TYPE and COMMENT. I've got the code...
3
5283
by: Saso Zagoranski | last post by:
Hi! A question about database tables... I have a SELECT statement: SELECT something FROM someTable WHERE code = @code The parameter code starts with 1 and is autoincremented... Now I want...
3
8987
by: Jason Manfield | last post by:
Given a table name (e.g. CUSTOMERS), how do I get column names of the table and the data types of the columns the table has? I am using SQLServer and would like to get that info from my C# code.
3
1598
by: =?Utf-8?B?cm9kY2hhcg==?= | last post by:
hey all, i noticed if i use the missing schema to fill a datatablecollection the table names are generic (Table, Table1, Table2) is there anyway to change that? i tried on the sql side to use an...
3
8650
by: karanbikash | last post by:
Hi , I would like to know : 1.how to find all the schema in my DB2 database on Main frame machine . 2. How to see all the tables for a given schema . 3. What are the default schema in Db2 on...
0
7224
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,...
0
7118
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...
0
7323
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,...
1
7038
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...
0
7493
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5625
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4706
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...
0
3192
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
415
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.