473,472 Members | 2,257 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

pg_dump feature request: Exclude tables?

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
gl******@nwlink.com
---------------------------(end of broadcast)---------------------------
TIP 7: don't forget to increase your free space map settings

Nov 23 '05 #1
4 4759
Glen Parker wrote:
Since pg_dump will be allowing multiple -t <table> parameters for 8.0, here
is a related feature request.
Nope, didn't make it into 8.0.
A similar option (allowing multiples also) to EXCLUDE tables, so we can do a
dump of the entire database minus a few tables.


Yes, we have talked about that.

--
Bruce Momjian | http://candle.pha.pa.us
pg***@candle.pha.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 8: explain analyze is your friend

Nov 23 '05 #2
Bruce Momjian wrote:
Glen Parker wrote:

Since pg_dump will be allowing multiple -t <table> parameters for 8.0, here
is a related feature request.


Nope, didn't make it into 8.0.
A similar option (allowing multiples also) to EXCLUDE tables, so we can do a
dump of the entire database minus a few tables.


Yes, we have talked about that.

This would be a big plus for one of our projects too. Is it on some TODO
list for a future release?

Ron
---------------------------(end of broadcast)---------------------------
TIP 7: don't forget to increase your free space map settings

Nov 23 '05 #3
Ron St-Pierre wrote:
Bruce Momjian wrote:
Glen Parker wrote:

Since pg_dump will be allowing multiple -t <table> parameters for 8.0, here
is a related feature request.


Nope, didn't make it into 8.0.
A similar option (allowing multiples also) to EXCLUDE tables, so we can do a
dump of the entire database minus a few tables.


Yes, we have talked about that.

This would be a big plus for one of our projects too. Is it on some TODO
list for a future release?


No, we have:

* Allow pg_dump to use multiple -t and -n switches

This should be done by allowing a '-t schema.table' syntax.

but that doesn't have the exclude option. We had a patch that
implemented an exclude but got confused over how it would interact with
the schema switch and stuff. However, with the new '-t schema.table'
syntax we might be able to get it working.

--
Bruce Momjian | http://candle.pha.pa.us
pg***@candle.pha.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 9: the planner will ignore your desire to choose an index scan if your
joining column's datatypes do not match

Nov 23 '05 #4
I second this. I would prefer an option to dump only the schema of
certain tables rather than excluding them altogether.

Paul
Glen Parker wrote:
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
gl******@nwlink.com
---------------------------(end of broadcast)---------------------------
TIP 7: don't forget to increase your free space map settings

---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend

Nov 23 '05 #5

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

Similar topics

0
by: RoB | last post by:
hello I have database with 20 tables, but I want to do backup only 10 tables pg_dump include -t option, for example: pg_dump ... -t table1 can I do 10 tables backup only with 1 command?...
7
by: Ed L. | last post by:
We are seeing what looks like pgsql data file corruption across multiple clusters on a RAID5 partition on a single redhat linux 2.4 server running 7.3.4. System has ~20 clusters installed with a...
4
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$...
1
by: Ben-Nes Michael | last post by:
Hello Im getting strange errors when restoring data from pg_dump files: ERROR: duplicate key violates unique constraint "products_pkey" CONTEXT: COPY products, line 1: "98 Super Pak Ruby...
4
by: Thomas F. O'Connell | last post by:
In using pg_dump to dump an existing postgres database, I get the following: pg_dump: WARNING: out of shared memory pg_dump: attempt to lock table <table name> failed: ERROR: out of shared...
6
by: Soeren Gerlach | last post by:
Hi, some weeks ago I started to develop an application using Postgresql the first time. I'm running 7.4.3 on a Linux box with a plain 2.6.7 kernel, the storage is handled by 5 SATA disks,...
1
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...
3
by: Glen Parker | last post by:
> No, we have: > > * Allow pg_dump to use multiple -t and -n switches > > This should be done by allowing a '-t schema.table' syntax. > > but that doesn't have the exclude option. We had a...
7
by: Ulrich Wisser | last post by:
Hi, I would like to stop the postmaster every night and run vacuum pg_dump reindex in the stand alone backend.
0
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
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...
1
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
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
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
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
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
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 ...
0
muto222
php
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.