473,804 Members | 3,209 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

pg_dump and schema namespace notes

I think this is a suggestion/comment!

pg_dump man page:

--schema-only
Dump only the schema (data definitions), no data

I think this use of the word schema is confusing, meaning data
definitions, whereas elsewhere in the man page schema are used as a
namespace definition.

--schema=schema
Dump the contents of schema only. If this option is not
speci- fied, all non-system schemas in the target
database will be dumped

It would be nice if this could be a comman separated list (like set
search_path; A,info,public etc).

Rory
--
Rory Campbell-Lange
<ro**@campbel l-lange.net>
<www.campbell-lange.net>

---------------------------(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
6 2005

Any comments on this? It seems like a valid confusion. What solutions
are there?

---------------------------------------------------------------------------

Rory Campbell-Lange wrote:
I think this is a suggestion/comment!

pg_dump man page:

--schema-only
Dump only the schema (data definitions), no data

I think this use of the word schema is confusing, meaning data
definitions, whereas elsewhere in the man page schema are used as a
namespace definition.

--schema=schema
Dump the contents of schema only. If this option is not
speci- fied, all non-system schemas in the target
database will be dumped

It would be nice if this could be a comman separated list (like set
search_path; A,info,public etc).

Rory
--
Rory Campbell-Lange
<ro**@campbel l-lange.net>
<www.campbell-lange.net>

---------------------------(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


--
Bruce Momjian | http://candle.pha.pa.us
pg***@candle.ph a.pa.us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

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

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

Nov 23 '05 #2

Any comments on this? It seems like a valid confusion. What solutions
are there?

---------------------------------------------------------------------------

Rory Campbell-Lange wrote:
I think this is a suggestion/comment!

pg_dump man page:

--schema-only
Dump only the schema (data definitions), no data

I think this use of the word schema is confusing, meaning data
definitions, whereas elsewhere in the man page schema are used as a
namespace definition.

--schema=schema
Dump the contents of schema only. If this option is not
speci- fied, all non-system schemas in the target
database will be dumped

It would be nice if this could be a comman separated list (like set
search_path; A,info,public etc).

Rory
--
Rory Campbell-Lange
<ro**@campbel l-lange.net>
<www.campbell-lange.net>

---------------------------(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


--
Bruce Momjian | http://candle.pha.pa.us
pg***@candle.ph a.pa.us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

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

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

Nov 23 '05 #3
Bruce Momjian wrote:
Any comments on this? It seems like a valid confusion. What solutions
are there?

A common interchangeable title for schema is namespace and in actuality
we use \dn in psql (\dnamespace)
to list them.

Perhaps we should change the name? I believe Oracle uses the term
namespace as well.

Sincerely,

Joshua D. Drake

---------------------------------------------------------------------------

Rory Campbell-Lange wrote:

I think this is a suggestion/comment!

pg_dump man page:

--schema-only
Dump only the schema (data definitions), no data

I think this use of the word schema is confusing, meaning data
definitions , whereas elsewhere in the man page schema are used as a
namespace definition.

--schema=schema
Dump the contents of schema only. If this option is not
speci- fied, all non-system schemas in the target
database will be dumped

It would be nice if this could be a comman separated list (like set
search_path ; A,info,public etc).

Rory
--
Rory Campbell-Lange
<ro**@campbel l-lange.net>
<www.campbe ll-lange.net>

---------------------------(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


--
Command Prompt, Inc., home of Mammoth PostgreSQL - S/ODBC and S/JDBC
Postgresql support, programming shared hosting and dedicated hosting.
+1-503-667-4564 - jd@commandpromp t.com - http://www.commandprompt.com
PostgreSQL Replicator -- production quality replication for PostgreSQL
Nov 23 '05 #4
Bruce Momjian wrote:
Any comments on this? It seems like a valid confusion. What solutions
are there?

A common interchangeable title for schema is namespace and in actuality
we use \dn in psql (\dnamespace)
to list them.

Perhaps we should change the name? I believe Oracle uses the term
namespace as well.

Sincerely,

Joshua D. Drake

---------------------------------------------------------------------------

Rory Campbell-Lange wrote:

I think this is a suggestion/comment!

pg_dump man page:

--schema-only
Dump only the schema (data definitions), no data

I think this use of the word schema is confusing, meaning data
definitions , whereas elsewhere in the man page schema are used as a
namespace definition.

--schema=schema
Dump the contents of schema only. If this option is not
speci- fied, all non-system schemas in the target
database will be dumped

It would be nice if this could be a comman separated list (like set
search_path ; A,info,public etc).

Rory
--
Rory Campbell-Lange
<ro**@campbel l-lange.net>
<www.campbe ll-lange.net>

---------------------------(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


--
Command Prompt, Inc., home of Mammoth PostgreSQL - S/ODBC and S/JDBC
Postgresql support, programming shared hosting and dedicated hosting.
+1-503-667-4564 - jd@commandpromp t.com - http://www.commandprompt.com
PostgreSQL Replicator -- production quality replication for PostgreSQL
Nov 23 '05 #5
Bruce Momjian <pg***@candle.p ha.pa.us> writes:
Any comments on this? It seems like a valid confusion. What solutions
are there?


I think we're stuck. We can't avoid the fact that the SQL syntax uses
the keyword SCHEMA to mean a namespace. We also can't avoid the very
common usage of "database schema" to mean the logical structure of your
table collection. Trying to redefine or avoid either of these terms is
hopeless. Maybe we could add some text in the tutorial to point out
the double meaning?

regards, tom lane

---------------------------(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 #6
Bruce Momjian <pg***@candle.p ha.pa.us> writes:
Any comments on this? It seems like a valid confusion. What solutions
are there?


I think we're stuck. We can't avoid the fact that the SQL syntax uses
the keyword SCHEMA to mean a namespace. We also can't avoid the very
common usage of "database schema" to mean the logical structure of your
table collection. Trying to redefine or avoid either of these terms is
hopeless. Maybe we could add some text in the tutorial to point out
the double meaning?

regards, tom lane

---------------------------(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 #7

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

Similar topics

0
4907
by: Martin Hart | last post by:
Hi, postgresql 7.4beta4 on linux and postgresql 7.3.4 on linux We have a database that we routinely backup using "pg_dump -a" We have to do this (dump the data only) because of various characteristics of the database (e.g. the dump file tries to create fks to tables that it hasn't created yet if we export schema + data).
2
8199
by: Patrick Hatcher | last post by:
Pg: 7.4. I thought there was supposed to be switch to allow dumping of schema X from a database in version 7.4? But I don't see one. Is it still not possible? TIA Patrick Hatcher
4
3817
by: jack turer | last post by:
I have a database in pgsql (7.3.2) on redhat 9. When I try a 'pg_dump mydb' to back up the database, I get: pg_dump: could not find namespace with OID 2200 Verbose version is: -bash-2.05b$ pg_dump -v mydb | more pg_dump: saving database definition pg_dump: reading namespaces pg_dump: reading user-defined types
1
1542
by: Otto Blomqvist | last post by:
Hello! I have a small database (10MB gz dump). When I do a pg_dump -l -s (to list the schema) of the original database it takes below 1 second. But when I do dump of a copy of the database (using a full restore into a new DB) it takes like 10-15 seconds to do the schema list (pg_dump -l -s). I need to compare the schemes of about 20 tables and this takes a while... Anyone have any ideas ? I can't figure out why the newly created copy...
1
1878
by: Neil Zanella | last post by:
Hello, I have an SQL database which I create with: psql -f create.sql foodb I then access this database and perform several insertions, modifications, and deletions. Finally, I want to backup my database. I do not want to backup the schema. All I want is a set of insert statements stored in a file insert.sql which I can run on a set of empty database tables
4
4837
by: Glen Parker | last post by:
Since pg_dump will be allowing multiple -t <table> parameters for 8.0, here is a related feature request. A similar option (allowing multiples also) to EXCLUDE tables, so we can do a dump of the entire database minus a few tables. Glen Parker glenebob@nwlink.com
2
2716
by: Anony Mous | last post by:
Hi, I've seen in previous posts that recommended practice for database backup is to run the dump utility twice. Once for schema only and a second time for data only (I think). Up to know, I've only ever dumped both, and have never had a problem restoring into older/newer versions of postgres, nor with restoring into other commercial versions of postgres. This is a testament of the robustness of pg_dump! Of course, there are always a...
2
3685
by: pnmcosta | last post by:
Hi, I'm fairly new to XML Schema validation. We have XML being imported that must validate against the following schema: <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.temp.com/ContactsImport" xmlns="http://www.temp.com/ContactsImport" elementFormDefault="qualified"> <xs:element name="Contacts"> <xs:complexType> <xs:sequence>
0
2154
by: aktivo | last post by:
pg_dump remove name of schema from default value. i don't know why. how can i solve this problem ? For example: BEFORE PG_DUMP: CREATE TABLE "is8"."tb_kotuce" ( "id_kotuc" CHAR(10) DEFAULT is8.fn_sq_id_kotuc() NOT NULL, ... ...
0
10340
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
9161
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...
1
7623
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
6857
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
5527
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
5662
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4302
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
3827
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2998
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.