<html>
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered)">
<title>pgsql2shp buffer</title>
<style>
<!--
/* Font Definitions */
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman";}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{color:purple;
text-decoration:underline;}
p
{margin-right:0in;
margin-left:0in;
font-size:12.0pt;
font-family:"Times New Roman";}
span.EmailStyle18
{font-family:Arial;
color:navy;}
@page Section1
{size:8.5in 11.0in;
margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
{page:Section1;}
-->
</style>
</head>
<body lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>A little more info . . .</span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'> </span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>I did the same type of query to see if it
would run to completion.</span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'> </span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>psql -U xxx-d xxx -c 'select * from
wind_prod_to_be_purged;' > wind_prod_to_be_purged.txt</span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'> </span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>It ran to completion in only about 3
minutes.</span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'> </span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>wind_prod_to_be_purged is a view w/ 580093
rows. So why would pgsql2shp be hanging on this?</span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'> </span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Thanks.</span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'> </span></font></p>
<div style='border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt'>
<div>
<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>
<hr size=2 width="100%" align=center tabindex=-1>
</span></font></div>
<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'> Purvis, Charlton [mailto:cpurvis@asg.sc.edu] <br>
<b><span style='font-weight:bold'>Sent:</span></b> Friday, March 25, 2005 2:26
PM<br>
<b><span style='font-weight:bold'>To:</span></b> 'PostGIS Users Discussion'<br>
<b><span style='font-weight:bold'>Subject:</span></b> [postgis-users] pgsql2shp
buffer</span></font></p>
</div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'> </span></font></p>
<p><font size=2 face="Times New Roman"><span style='font-size:10.0pt'>Hi,
folks:</span></font> </p>
<p><font size=2 face="Times New Roman"><span style='font-size:10.0pt'>I'm
curious if pgsql2shp writes to a buffer of some sort before it actually starts
writing to a .dbf. I'm trying to dump about 0.5 million rows which
shouldn't be too bad and shouldn't take too long. However, pgsql2shp
seems to sit there w/ only a 1 byte (or KB?) .dbf. Should I turn on
debugging? I'd hate to recompile PostGIS.</span></font></p>
<p><font size=2 face="Times New Roman"><span style='font-size:10.0pt'>If I type
a select * from table_name (the one I'm trying to create the shp from), it
returns w/i a minute or two. But I'm sure psql is doing buffering of its
own.</span></font></p>
<p><font size=2 face="Times New Roman"><span style='font-size:10.0pt'>postgresql-7.4.1/contrib/postgis-0.8.1</span></font>
</p>
<p><font size=2 face="Times New Roman"><span style='font-size:10.0pt'>Thanks,</span></font>
</p>
<p><font size=2 face="Times New Roman"><span style='font-size:10.0pt'>Charlton</span></font>
</p>
<p><font size=2 face="Times New Roman"><span style='font-size:10.0pt'> </span></font>
<br>
<font size=2><span style='font-size:10.0pt'> </span></font> <br>
<font size=2><span style='font-size:10.0pt'> </span></font> <br>
<font size=2><span style='font-size:10.0pt'>Charlton Purvis</span></font> <br>
<font size=2><span style='font-size:10.0pt'>(803) 777-8858 : voice</span></font>
<br>
<font size=2><span style='font-size:10.0pt'>(803) 777-3935 : fax</span></font> <br>
<font size=2><span style='font-size:10.0pt'>cpurvis@sc.edu</span></font> <br>
<font size=2><span style='font-size:10.0pt'> </span></font> <br>
<font size=2><span style='font-size:10.0pt'>Baruch Institute</span></font> <br>
<font size=2><span style='font-size:10.0pt'>University of South Carolina</span></font>
<br>
<font size=2><span style='font-size:10.0pt'>Columbia, SC 29208</span></font> </p>
</div>
</div>
</body>
</html>