473,661 Members | 2,465 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_prof iles, sql_packages, sql_features, sql_implementat ion_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 1260
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_prof iles, sql_packages, sql_features,
sql_implementat ion_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*******@postg resql.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_prof iles, sql_packages, sql_features,
sql_implementat ion_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_sch ema 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_prof iles, sql_packages, sql_features,
sql_implementat ion_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_SCH EMA 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 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

6
3098
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
2192
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> <Username></Username> <IPAddress></IPAddress> </AuditLogon> <AuditLogonGroup>
7
7377
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 don't understand or see. If you have some insight into this problem that you are willing to share, I'd be grateful. One possibility is the uniqueness required: is the constraint required to be unique with table, schema or database? PS: Ignore the...
5
4644
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 tables shown are of the nature username.tablename I would like this only to display the table name I have this arrangement on another PC here but I am not sure how it was configured. Thanks
1
1875
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 below to get the Table Names and Field Names, but don't know how to get the TYPE and COMMENT information. Mostly I probably just need the MS-Access Schema
3
5290
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 to add a row to the database and I do it like this: DataSet dataSet = new DataSet();
3
8995
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
1604
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 alias for the table name but i don't think that work when i tried to debug. thanks, rodchar
3
8667
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 Mainframe . zOS. I know all the above when I connect to DB2 on LUW ..
0
8428
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
8341
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
8754
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8630
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7362
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4177
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4343
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2760
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
2
1984
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.