Thread: psql default directory on windows

psql default directory on windows

From
"Little, Douglas"
Date:
<div class="WordSection1"><p class="MsoNormal">Is there a way to have the default directory of the psql console session
set?<pclass="MsoNormal">I just upgraded to windows 7 and it’s defaulting to windows/system32<p class="MsoNormal"> <p
class="MsoNormal">Iguess this is a dos box default, but though I’d ask.<p class="MsoNormal"> <p
class="MsoNormal">Thanks<pclass="MsoNormal"> <p class="MsoNormal"> <p class="MsoNormal"><b><span
style="font-size:10.0pt;font-family:"Arial","sans-serif"">DougLittle</span></b><p class="MsoNormal"><b><span
style="font-size:12.0pt"> </span></b><pclass="MsoNormal"><span
style="font-size:10.0pt;font-family:"Arial","sans-serif"">Sr.Data Warehouse Architect | Business Intelligence
Architecture| Orbitz Worldwide </span><p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Arial","sans-serif"">500W. Madison, Suite 1000  Chicago IL 60661| Office
312.260.2588 |Fax 312.894.5164 | Cell 847-997-5741</span><span style="font-size:12.0pt;font-family:"Times New
Roman","serif""></span><pclass="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif""><a
href="mailto:Douglas.Little@orbitz.com"title="mailto:dlittle@orbitz.com"><b><span
style="color:blue">Douglas.Little@orbitz.com</span></b></a></span><b><u><spanstyle="font-size:13.5pt;font-family:"Times
NewRoman","serif";color:blue"></span></u></b><p class="MsoNormal"> <img alt="Description:
cid:image001.jpg@01CABEC8.D4980670"border="0" height="61" id="Picture_x0020_1" src="cid:image001.jpg@01CCD51F.C9FEC040"
width="83"/>  <a href="http://www.orbitz.com/" title="http://www.orbitz.com/"><span
style="font-size:8.0pt;font-family:"Arial","sans-serif";color:blue">orbitz.com</span></a><span
style="color:blue">|</span><a href="http://www.ebookers.com/" title="http://www.ebookers.com/"><span
style="font-size:8.0pt;font-family:"Arial","sans-serif";color:blue">ebookers.com</span></a><span
style="color:blue">|</span><a href="http://www.hotelclub.com/" title="http://www.hotelclub.com/"><span
style="font-size:8.0pt;font-family:"Arial","sans-serif";color:blue">hotelclub.com</span></a><span
style="color:blue">|</span><a href="http://www.cheaptickets.com/" title="http://www.cheaptickets.com/"><span
style="font-size:8.0pt;font-family:"Arial","sans-serif";color:blue">cheaptickets.com</span></a><span
style="color:blue">|</span><a href="http://www.ratestogo.com/" title="http://www.ratestogo.com/"><span
style="font-size:8.0pt;font-family:"Arial","sans-serif";color:blue">ratestogo.com</span></a><spanstyle="color:blue">
|</span><a href="http://www.asiahotels.com/" title="http://www.asiahotels.com/"><span
style="font-size:8.0pt;font-family:"Arial","sans-serif";color:blue">asiahotels.com</span></a><p
class="MsoNormal"> </div>

Re: psql default directory on windows

From
Guillaume Lelarge
Date:
On Tue, 2012-01-17 at 13:56 -0600, Little, Douglas wrote:
> Is there a way to have the default directory of the psql console session set?
> I just upgraded to windows 7 and it's defaulting to windows/system32
> 
> I guess this is a dos box default, but though I'd ask.
> 

You should use the .psqlrc file to preset the default directory. Not
sure where you should put it on Windows though.


-- 
Guillaume
http://blog.guillaume.lelarge.info
http://www.dalibo.com
PostgreSQL Sessions #3: http://www.postgresql-sessions.org