It's been around for years. Since 1.4 I'd guess. When you type shp2pgsql you should see this option:<br>   -n  Only import DBF file.<br>The OP was how to load a dbf into postgres, you're exporting with pgsql2shp, which will export only the dbf if there is not geometry column in the table being exported.<br>
<br>Rich<br><br><br><div class="gmail_quote">On Sun, Jan 29, 2012 at 9:39 PM,  <span dir="ltr"><<a href="mailto:pcreso@pcreso.com">pcreso@pcreso.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td style="font:inherit" valign="top">When did this become available?<br><br>I'm using pgsql2shp from Postgis version 1.5.3 for Linux, which is pretty current, and that is not a listed command line option.<br>
<br>Cheers,<br><br>   Brent Wood<br><br>--- On <b>Mon, 1/30/12, Richard Greenwood <i><<a href="mailto:richard.greenwood@gmail.com" target="_blank">richard.greenwood@gmail.com</a>></i></b> wrote:<br><blockquote style="border-left:2px solid rgb(16,16,255);margin-left:5px;padding-left:5px">
<br>From: Richard Greenwood <<a href="mailto:richard.greenwood@gmail.com" target="_blank">richard.greenwood@gmail.com</a>><br>Subject: Re: [postgis-users] tool to load dbf into postgresql table<br>To: "PostGIS Users Discussion" <<a href="mailto:postgis-users@postgis.refractions.net" target="_blank">postgis-users@postgis.refractions.net</a>><br>
Date: Monday, January 30, 2012, 3:55 PM<br><br><div><div><div class="h5">On Sun, Jan 29, 2012 at 7:17 PM, John Morgan <<a href="http://mc/compose?to=jdmorgan@unca.edu" target="_blank">jdmorgan@unca.edu</a>> wrote:<br>
>
 Hello,<br>> This may be more of a postgresql question, but it is related to my postgis<br>> setup.  I was hoping that someone might know of an easy way to load a dbf<br>> into postgresql table.  I have used the gdal tool shp2pgsql to load a<br>
> shapefile in this way and it worked great.  Is there a similar tool for<br>> loading just a dbf?<br>><br>> Thanks,<br>> Derek<br><br>Derek,<br><br>Use the -n switch with shp2pgsql will do what you want:<br>
   shp2pgsql -n<br>Also ogr2ogr will do the trick. ogr2ogr can also handle conversions<br>between numerous other spatial and non-spatial data formats. ODBC is<br>especially handy.<br><br>Rich<br><br>--<br>Richard Greenwood<br>
<a href="http://mc/compose?to=richard.greenwood@gmail.com" target="_blank">richard.greenwood@gmail.com</a><br><a href="http://www.greenwoodmap.com" target="_blank">www.greenwoodmap.com</a><br></div></div><div class="im">_______________________________________________<br>
postgis-users
 mailing list<br><a href="http://mc/compose?to=postgis-users@postgis.refractions.net" target="_blank">postgis-users@postgis.refractions.net</a><br><a href="http://postgis.refractions.net/mailman/listinfo/postgis-users" target="_blank">http://postgis.refractions.net/mailman/listinfo/postgis-users</a><br>
</div></div></blockquote></td></tr></tbody></table><br>_______________________________________________<br>
postgis-users mailing list<br>
<a href="mailto:postgis-users@postgis.refractions.net">postgis-users@postgis.refractions.net</a><br>
<a href="http://postgis.refractions.net/mailman/listinfo/postgis-users" target="_blank">http://postgis.refractions.net/mailman/listinfo/postgis-users</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Richard Greenwood<br><a href="mailto:richard.greenwood@gmail.com">richard.greenwood@gmail.com</a><br><a href="http://www.greenwoodmap.com">www.greenwoodmap.com</a><br>