pg.ddx.io pgsql-admin@postgresql.org mailing list archivehelp / color / mirror / Atom feed
Extension prevents dumping table? 2+ messages / 2 participants [nested] [flat]
* Extension prevents dumping table? @ 2012-05-09 17:06 Chander Ganesan <chander.ganesan@gmail.com> 0 siblings, 1 reply; 2+ messages in thread From: Chander Ganesan @ 2012-05-09 17:06 UTC (permalink / raw) To: pgsql-admin With PostGIS 2.0 if I load/install postgis using the command: create extension postgis schema postgis; And then use the command: pg_dump -t postgis.spatial_ref_sys dbname > spatial_ref_sys.sql I get an output that contains a few "set" statements, but no table definition or data from the table. However, if I install the PostGIS components the "old" way (not using the extension loader), the pg_dump of the table works just fine. Any ideas how to fix this or why this happens? thanks chander ^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: Extension prevents dumping table? @ 2012-05-09 17:41 Tom Lane <tgl@sss.pgh.pa.us> parent: Chander Ganesan <chander.ganesan@gmail.com> 0 siblings, 0 replies; 2+ messages in thread From: Tom Lane @ 2012-05-09 17:41 UTC (permalink / raw) To: Chander Ganesan <chander.ganesan@gmail.com>; +Cc: pgsql-admin Chander Ganesan <chander.ganesan@gmail.com> writes: > With PostGIS 2.0 if I load/install postgis using the command: > create extension postgis schema postgis; > And then use the command: > pg_dump -t postgis.spatial_ref_sys dbname > spatial_ref_sys.sql > I get an output that contains a few "set" statements, but no table > definition or data from the table. > However, if I install the PostGIS components the "old" way (not using > the extension loader), the pg_dump of the table works just fine. > Any ideas how to fix this or why this happens? I don't think there is anything to "fix". If the table is part of the extension then it should not get dumped separately. I don't know enough about PostGIS to know if there's a valid reason to want to dump that table by itself, but if you think there is, you should take it up with the PostGIS authors; there may be a need to adjust the way PostGIS is packaged into an extension. regards, tom lane ^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2012-05-09 17:41 UTC | newest] Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2012-05-09 17:06 Extension prevents dumping table? Chander Ganesan <chander.ganesan@gmail.com> 2012-05-09 17:41 ` Tom Lane <tgl@sss.pgh.pa.us>
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox