<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-7997313029981170997.post1177409091349335577..comments</id><updated>2010-02-26T09:12:02.851-05:00</updated><category term='mobile'/><category term='Fedora'/><category term='postgres'/><category term='tools'/><category term='sysadmin'/><category term='pentaho'/><category term='community'/><category term='hosting'/><category term='analytics'/><category term='SELinux'/><category term='perl data-structures json'/><category term='redhat'/><category term='audio'/><category term='travel'/><category term='css'/><category term='git'/><category term='tips'/><category term='nginx'/><category term='Spree'/><category term='cakephp'/><category term='email'/><category term='nosql'/><category term='social-networking'/><category term='unicode'/><category term='performance'/><category term='piggybak'/><category term='eye-candy'/><category term='reporting'/><category term='thrift'/><category term='facebook'/><category term='visualization'/><category term='openbsd'/><category term='mysql'/><category term='scalability'/><category term='riak'/><category term='security'/><category term='CentOS'/><category term='graphics'/><category term='cucumber'/><category term='rvm'/><category term='cloud'/><category term='django'/><category term='remote-work'/><category term='networking'/><category term='wordpress'/><category term='perlbrew'/><category term='optimization'/><category term='book review'/><category term='dropbox'/><category term='sinatra'/><category term='design'/><category term='mp3'/><category term='ruby-and-ruby-on-rails'/><category term='testing'/><category term='open-source'/><category term='json'/><category term='ruby'/><category term='yui'/><category term='virtualization'/><category term='COTS'/><category term='Camps'/><category term='javascript'/><category term='workflow'/><category term='sponsorship'/><category term='perl'/><category term='messaging'/><category term='environment'/><category term='gnu'/><category term='lua'/><category term='rpm'/><category term='browsers'/><category term='configuration-management'/><category term='python'/><category term='ecommerce'/><category term='Conference'/><category term='voldemort'/><category term='image'/><category term='jasper'/><category term='clients'/><category term='dbdpg'/><category term='Android'/><category term='database'/><category term='version-control'/><category term='linux'/><category term='USPS'/><category term='data-warehouse'/><category term='openafs'/><category term='cassandra'/><category term='mondaylinks'/><category term='php'/><category term='Debian'/><category term='monitoring'/><category term='liquid-galaxy'/><category term='audit'/><category term='Bucardo'/><category term='Java'/><category term='mongodb'/><category term='API'/><category term='seo'/><category term='SeniorNet'/><category term='company'/><category term='jquery'/><category term='jobs'/><category term='sql'/><category term='search'/><category term='Ubuntu'/><category term='Interchange'/><category term='caching'/><category term='ipv6'/><title type='text'>Comments on End Point Blog: Splitting Postgres pg_dump into pre and post data ...</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://blog.endpoint.com/feeds/1177409091349335577/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7997313029981170997/1177409091349335577/comments/default'/><link rel='alternate' type='text/html' href='http://blog.endpoint.com/2010/01/splitting-postgres-pgdump-into-pre-and.html'/><author><name>Jon Jensen</name><uri>http://www.blogger.com/profile/18273388885281263476</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='25' src='http://bp3.blogger.com/_rFXHDrokbpE/SJHpPosaIQI/AAAAAAAAAAM/GnqeZuLItOA/S220/jon1.png'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>10</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-7997313029981170997.post-1187382263881581798</id><published>2010-02-26T09:12:02.851-05:00</published><updated>2010-02-26T09:12:02.851-05:00</updated><title type='text'>@ Richard Huxton:
Richard, can you give some more ...</title><content type='html'>@ Richard Huxton:&lt;br /&gt;Richard, can you give some more details of the scripts your are using to do that kind of &amp;#39;schema explode&amp;#39;? It sounds like this is actually something I was looking for since years to integrate postgresql development into an SVN.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7997313029981170997/1177409091349335577/comments/default/1187382263881581798'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7997313029981170997/1177409091349335577/comments/default/1187382263881581798'/><link rel='alternate' type='text/html' href='http://blog.endpoint.com/2010/01/splitting-postgres-pgdump-into-pre-and.html?showComment=1267193522851#c1187382263881581798' title=''/><author><name>Tobias</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.endpoint.com/2010/01/splitting-postgres-pgdump-into-pre-and.html' ref='tag:blogger.com,1999:blog-7997313029981170997.post-1177409091349335577' source='http://www.blogger.com/feeds/7997313029981170997/posts/default/1177409091349335577' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-11463940'/></entry><entry><id>tag:blogger.com,1999:blog-7997313029981170997.post-7038332995928819074</id><published>2010-01-25T11:24:27.596-05:00</published><updated>2010-01-25T11:24:27.596-05:00</updated><title type='text'>Andrew:

Not to minimize my own efforts, but this ...</title><content type='html'>Andrew:&lt;br /&gt;&lt;br /&gt;Not to minimize my own efforts, but this script *is* &amp;quot;a tiny bit of perl (or sed) glue&amp;quot; :) I&amp;#39;m all for custom formats: the process just becomes pg_format --schema-only dumpfile &amp;gt; newdumpfile; ./split_postgres_dump.pl newdumpfile. Of course, pg_dumpall doesn&amp;#39;t do custom formats...</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7997313029981170997/1177409091349335577/comments/default/7038332995928819074'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7997313029981170997/1177409091349335577/comments/default/7038332995928819074'/><link rel='alternate' type='text/html' href='http://blog.endpoint.com/2010/01/splitting-postgres-pgdump-into-pre-and.html?showComment=1264436667596#c7038332995928819074' title=''/><author><name>Greg Sabino Mullane</name><uri>http://www.blogger.com/profile/01284672712225991979</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.endpoint.com/2010/01/splitting-postgres-pgdump-into-pre-and.html' ref='tag:blogger.com,1999:blog-7997313029981170997.post-1177409091349335577' source='http://www.blogger.com/feeds/7997313029981170997/posts/default/1177409091349335577' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-362101321'/></entry><entry><id>tag:blogger.com,1999:blog-7997313029981170997.post-3166887864832906191</id><published>2010-01-23T18:13:17.846-05:00</published><updated>2010-01-23T18:13:17.846-05:00</updated><title type='text'>Splitting a dump is totally trivial with a custom ...</title><content type='html'>Splitting a dump is totally trivial with a custom format dump, with or without data members. You use the --list and --use-list pieces of pg_restore plus a tiny bit of perl (or sed) glue. You&amp;#39;re not using custom format dumps? Well, quite apart from this you&amp;#39;re also depriving yourself of the possibility to use parallel pg_restore.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7997313029981170997/1177409091349335577/comments/default/3166887864832906191'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7997313029981170997/1177409091349335577/comments/default/3166887864832906191'/><link rel='alternate' type='text/html' href='http://blog.endpoint.com/2010/01/splitting-postgres-pgdump-into-pre-and.html?showComment=1264288397846#c3166887864832906191' title=''/><author><name>Andrew</name><uri>http://www.blogger.com/profile/12217888803221590278</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://3.bp.blogspot.com/_WCnWf1uF2jA/SjEItx04yDI/AAAAAAAAACI/aPHVlYuYasM/S220/andrew.jpg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.endpoint.com/2010/01/splitting-postgres-pgdump-into-pre-and.html' ref='tag:blogger.com,1999:blog-7997313029981170997.post-1177409091349335577' source='http://www.blogger.com/feeds/7997313029981170997/posts/default/1177409091349335577' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1658057525'/></entry><entry><id>tag:blogger.com,1999:blog-7997313029981170997.post-7390884315212166101</id><published>2010-01-21T17:02:28.124-05:00</published><updated>2010-01-21T17:02:28.124-05:00</updated><title type='text'>I&amp;#39;ve got a similar gadget I use here, but it&amp;#...</title><content type='html'>I&amp;#39;ve got a similar gadget I use here, but it&amp;#39;s a schema exploder. You run a --schema-only dump through it and get a directory structure:&lt;br /&gt;  [schema]/[object-type]/[name]&lt;br /&gt;e.g.&lt;br /&gt;  lookups/table/country_names&lt;br /&gt;&lt;br /&gt;Each file has creation / adjustment sections. Hadn&amp;#39;t thought about having an option to separate them.&lt;br /&gt;&lt;br /&gt;I mainly use it so I have something diff/grep friendly to play with when looking at schema changes.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7997313029981170997/1177409091349335577/comments/default/7390884315212166101'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7997313029981170997/1177409091349335577/comments/default/7390884315212166101'/><link rel='alternate' type='text/html' href='http://blog.endpoint.com/2010/01/splitting-postgres-pgdump-into-pre-and.html?showComment=1264111348124#c7390884315212166101' title=''/><author><name>Richard Huxton</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.endpoint.com/2010/01/splitting-postgres-pgdump-into-pre-and.html' ref='tag:blogger.com,1999:blog-7997313029981170997.post-1177409091349335577' source='http://www.blogger.com/feeds/7997313029981170997/posts/default/1177409091349335577' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-683335859'/></entry><entry><id>tag:blogger.com,1999:blog-7997313029981170997.post-673901995272223075</id><published>2010-01-21T11:31:43.669-05:00</published><updated>2010-01-21T11:31:43.669-05:00</updated><title type='text'>Okay, now in git at github:

http://github.com/buc...</title><content type='html'>Okay, now in git at github:&lt;br /&gt;&lt;br /&gt;http://github.com/bucardo/Split_postgres_dump</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7997313029981170997/1177409091349335577/comments/default/673901995272223075'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7997313029981170997/1177409091349335577/comments/default/673901995272223075'/><link rel='alternate' type='text/html' href='http://blog.endpoint.com/2010/01/splitting-postgres-pgdump-into-pre-and.html?showComment=1264091503669#c673901995272223075' title=''/><author><name>Greg Sabino Mullane</name><uri>http://www.blogger.com/profile/01284672712225991979</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.endpoint.com/2010/01/splitting-postgres-pgdump-into-pre-and.html' ref='tag:blogger.com,1999:blog-7997313029981170997.post-1177409091349335577' source='http://www.blogger.com/feeds/7997313029981170997/posts/default/1177409091349335577' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-362101321'/></entry><entry><id>tag:blogger.com,1999:blog-7997313029981170997.post-7196697473202801296</id><published>2010-01-21T11:01:41.675-05:00</published><updated>2010-01-21T11:01:41.675-05:00</updated><title type='text'>Grzegorz J-

That doesn&amp;#39;t really help for the ...</title><content type='html'>Grzegorz J-&lt;br /&gt;&lt;br /&gt;That doesn&amp;#39;t really help for the use cases the script was written for.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7997313029981170997/1177409091349335577/comments/default/7196697473202801296'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7997313029981170997/1177409091349335577/comments/default/7196697473202801296'/><link rel='alternate' type='text/html' href='http://blog.endpoint.com/2010/01/splitting-postgres-pgdump-into-pre-and.html?showComment=1264089701675#c7196697473202801296' title=''/><author><name>Greg Sabino Mullane</name><uri>http://www.blogger.com/profile/01284672712225991979</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.endpoint.com/2010/01/splitting-postgres-pgdump-into-pre-and.html' ref='tag:blogger.com,1999:blog-7997313029981170997.post-1177409091349335577' source='http://www.blogger.com/feeds/7997313029981170997/posts/default/1177409091349335577' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-362101321'/></entry><entry><id>tag:blogger.com,1999:blog-7997313029981170997.post-5479694125770114715</id><published>2010-01-21T11:01:05.129-05:00</published><updated>2010-01-21T11:01:05.129-05:00</updated><title type='text'>Jeff Davis-

Good ideas. I guess maybe I should pu...</title><content type='html'>Jeff Davis-&lt;br /&gt;&lt;br /&gt;Good ideas. I guess maybe I should put this script into git after all. :)</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7997313029981170997/1177409091349335577/comments/default/5479694125770114715'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7997313029981170997/1177409091349335577/comments/default/5479694125770114715'/><link rel='alternate' type='text/html' href='http://blog.endpoint.com/2010/01/splitting-postgres-pgdump-into-pre-and.html?showComment=1264089665129#c5479694125770114715' title=''/><author><name>Greg Sabino Mullane</name><uri>http://www.blogger.com/profile/01284672712225991979</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.endpoint.com/2010/01/splitting-postgres-pgdump-into-pre-and.html' ref='tag:blogger.com,1999:blog-7997313029981170997.post-1177409091349335577' source='http://www.blogger.com/feeds/7997313029981170997/posts/default/1177409091349335577' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-362101321'/></entry><entry><id>tag:blogger.com,1999:blog-7997313029981170997.post-853204920027923353</id><published>2010-01-21T07:13:46.389-05:00</published><updated>2010-01-21T07:13:46.389-05:00</updated><title type='text'>just dump it in tar format, and you&amp;#39;ll get eve...</title><content type='html'>just dump it in tar format, and you&amp;#39;ll get everything chopped apart.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7997313029981170997/1177409091349335577/comments/default/853204920027923353'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7997313029981170997/1177409091349335577/comments/default/853204920027923353'/><link rel='alternate' type='text/html' href='http://blog.endpoint.com/2010/01/splitting-postgres-pgdump-into-pre-and.html?showComment=1264076026389#c853204920027923353' title=''/><author><name>Grzegorz J</name><uri>http://www.blogger.com/profile/01582040055358451515</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.endpoint.com/2010/01/splitting-postgres-pgdump-into-pre-and.html' ref='tag:blogger.com,1999:blog-7997313029981170997.post-1177409091349335577' source='http://www.blogger.com/feeds/7997313029981170997/posts/default/1177409091349335577' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-916242824'/></entry><entry><id>tag:blogger.com,1999:blog-7997313029981170997.post-13661488244714077</id><published>2010-01-20T19:10:03.833-05:00</published><updated>2010-01-20T19:10:03.833-05:00</updated><title type='text'>That&amp;#39;s very useful.

Other things that might b...</title><content type='html'>That&amp;#39;s very useful.&lt;br /&gt;&lt;br /&gt;Other things that might be helpful would be to:&lt;br /&gt; * Optionally restore indexes using CREATE INDEX CONCURRENTLY.&lt;br /&gt; * Optionally separate constraints into a separate phase. This may be useful when you want to restart the application ASAP, and you need the constraints to be active, but you may be able to live without non-constraint indexes for a while.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7997313029981170997/1177409091349335577/comments/default/13661488244714077'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7997313029981170997/1177409091349335577/comments/default/13661488244714077'/><link rel='alternate' type='text/html' href='http://blog.endpoint.com/2010/01/splitting-postgres-pgdump-into-pre-and.html?showComment=1264032603833#c13661488244714077' title=''/><author><name>Jeff Davis</name><uri>http://thoughts.j-davis.com</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.endpoint.com/2010/01/splitting-postgres-pgdump-into-pre-and.html' ref='tag:blogger.com,1999:blog-7997313029981170997.post-1177409091349335577' source='http://www.blogger.com/feeds/7997313029981170997/posts/default/1177409091349335577' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-999301065'/></entry><entry><id>tag:blogger.com,1999:blog-7997313029981170997.post-7840599635330996629</id><published>2010-01-20T13:10:38.200-05:00</published><updated>2010-01-20T13:10:38.200-05:00</updated><title type='text'>This is very useful, especially for setting up slo...</title><content type='html'>This is very useful, especially for setting up slony log shipping.  The slony1_dump.sql script does a data dump, which needs to be applied against a schema dump.  However, `pg_dump --schema-only` produces the pre- and post-data commands in one file, the foreign keys are applied immediately, causing the re-load of data to fail.  I&amp;#39;ve been doing schema split by hand up until now (split the schema file at the first &amp;quot;ALTER TABLE .* ADD CONSTRAINT&amp;quot; command, but I think this script will make things go a lot faster.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7997313029981170997/1177409091349335577/comments/default/7840599635330996629'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7997313029981170997/1177409091349335577/comments/default/7840599635330996629'/><link rel='alternate' type='text/html' href='http://blog.endpoint.com/2010/01/splitting-postgres-pgdump-into-pre-and.html?showComment=1264011038200#c7840599635330996629' title=''/><author><name>Richard (Yen)</name><uri>http://www.blogger.com/profile/11598153043859491552</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp1.blogger.com/_LJQsOyrV2cs/SHmCcleYijI/AAAAAAAAADM/UJYD1Dn7uJU/S220/Portrait.jpg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.endpoint.com/2010/01/splitting-postgres-pgdump-into-pre-and.html' ref='tag:blogger.com,1999:blog-7997313029981170997.post-1177409091349335577' source='http://www.blogger.com/feeds/7997313029981170997/posts/default/1177409091349335577' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-481319603'/></entry></feed>
