Opened 16 years ago
Last modified 14 years ago
#67 closed enhancement (fixed)
new tablespace parameter for shp2pgsql — at Version 2
Reported by: | kneufeld | Owned by: | kneufeld |
---|---|---|---|
Priority: | medium | Milestone: | PostGIS 2.0.0 |
Component: | postgis | Version: | master |
Keywords: | Cc: |
Description (last modified by )
I would like to see the addition of a tablespace parameter added to shp2pgsql.
For loading large tables, this is currently a three stage process.
- load DDL from shp2pgsql
- use psql and alter the tablespace of the table
- load the data from shp2pgsql
Postgres stores relations as individual files. When loading several thousand tables, the underlying OS can become slow when looking up a particular file/table. Having multiple tablespaces solves this problem.
Change History (2)
comment:1 by , 16 years ago
comment:2 by , 15 years ago
Description: | modified (diff) |
---|---|
Milestone: | → postgis 1.4.1 |
Version: | → trunk |
Note:
See TracTickets
for help on using tickets.
I guess that could be a useful feature; as a temporary work-around you could always use ALTER USER foo SET default_tablespace 'bar' and then load the shp2pgsql output as the foo user before reverting if required.
ATB,
Mark.