473,386 Members | 1,773 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

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 4756
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
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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,...

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.