Skip site navigation (1) Skip section navigation (2)

Win32 config file extension, capitalization

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Kevin Brown <kevin(at)sysexperts(dot)com>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>,PostgreSQL Win32 port list <pgsql-hackers-win32(at)postgresql(dot)org>
Subject: Win32 config file extension, capitalization
Date: 2005-01-13 15:56:12
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackerspgsql-hackers-win32
Kevin Brown wrote:
> Bruce Momjian wrote:
> > > > FWIW, I've seen several apps that use .txt for config files, but I can't
> > > > think of an example right now. Most don't though - .cfg or .conf is
> > > > probably most common. Except for the majority of windows programs that
> > > > don't use config files - they use the registry. But I see no reason *at
> > > > all* for us to want to do that :-) It also more or less requires you to
> > > > write a GUI to change the config stuff and in that case the file
> > > > extension becomes irrelevant.
> > > 
> > > Where are we on this?  I think Andrew and I both think *.txt is
> > > confusing.  We need to decide on Monday if we should change the current
> > > *.txt names.  We can either leave it unchanged, remove *.txt, or change
> > > it to *.config.
> > 
> > > >>> APPDATA/postgresql/pgpass.txt
> > > >>> APPDATA/postgresql/psqlrc.txt
> > 
> > Another idea is to use *.conf.
> For what it's worth, I always thought that text configuration files on
> Windows platforms generally used the '.ini' extension.  I believe on
> most Windows systems that extension is by default associated with
> Notepad.

The problem with *.ini is that it suggests we follow the INI file format
for those files, which we don't.

Given the recent votes I have made the following patch which changes the
*.txt extensions to *.conf.  It is consistent with our other config
files on the server side.  This change is for Win32 only.  I will apply
for 8.0 soon.

One additional issue is that we currently specify the client directory
as %APPDATA%\postgresql\, but in my "Application Data" directory most of
my directories are upper/lower case, suggesting that we should use
%APPDATA%\PostgreSQL\.  Win32 is case-insensitve but case-preserving so
they directory could be created with any case but it seems we should
suggest directory capitalization more consistent with Win32.


We are at the point where we are really just polishing Win32 and these
issues are all cosmetic.

  Bruce Momjian                        |
  pgman(at)candle(dot)pha(dot)pa(dot)us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

In response to


pgsql-hackers by date

Next:From: Csaba NagyDate: 2005-01-13 16:07:12
Subject: Re: [HACKERS] Much Ado About COUNT(*)
Previous:From: Greg StarkDate: 2005-01-13 15:50:22
Subject: Re: [HACKERS] Much Ado About COUNT(*)

pgsql-hackers-win32 by date

Next:From: William YuDate: 2005-01-13 17:13:42
Subject: Re: pgsqlODBC problems
Previous:From: Merlin MoncureDate: 2005-01-13 15:40:03
Subject: Re: [BUGS] psql: no chance to enter password in certain situations

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group