Unix Technical Forum

Re: [pgsql-hackers-win32] [BUGS] More SSL questions..

This is a discussion on Re: [pgsql-hackers-win32] [BUGS] More SSL questions.. within the pgsql Hackers forums, part of the PostgreSQL category; --> Magnus Hagander wrote: > >> My feeling is that the *.txt is actually misleading because > >people will > ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Hackers

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-11-2008, 03:14 AM
Bruce Momjian
 
Posts: n/a
Default Re: [pgsql-hackers-win32] [BUGS] More SSL questions..

Magnus Hagander wrote:
> >> My feeling is that the *.txt is actually misleading because

> >people will
> >> think of it as a file full of freeform text (paragraphs) and not a
> >> configuration file.

> >
> >Why would they think that? If notepad tends to auto-wrap files then
> >this argument has some force; I'm not very familar with it though.

>
> It does not. There is an option to make it *show* the file with wrapped
> line, but it does not even have the capability to wordwrap the files
> themselves.
>
> 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.

Currently the two Win32 files with *.txt extensions are:

> >>> APPDATA/postgresql/pgpass.txt
> >>> APPDATA/postgresql/psqlrc.txt


*.txt was added on Win32 to make them automatically start notepad.exe
when clicked on. Here is a copy of the Mozilla directory on XP:

[.] [..] 1138945.s 1138945.w
abook.mab bookmarks-1.html bookmarks-2.html bookmarks-3.html
bookmarks-4.html bookmarks-5.html bookmarks-6.html bookmarks.html
[Cache] [Cache.Trash] cert8.db [chatzilla]
[chrome] cookies.txt cookperm.txt downloads.rdf
history.dat history.mab hostperm.1 key3.db
localstore.rdf [Mail] mailViews.dat mimeTypes.rdf
panacea.dat panels.rdf parent.lock prefs.js
search.rdf secmod.db URL.tbl XUL.mfl

There are no *.txt files even though they are all text files. They are
not meant to be edited by hand though. I don't have any *.txt files
under \Application Data on my machine.

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

---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-11-2008, 03:14 AM
Bruce Momjian
 
Posts: n/a
Default Re: [pgsql-hackers-win32] [BUGS] More SSL questions..

Bruce Momjian wrote:
> [.] [..] 1138945.s 1138945.w
> abook.mab bookmarks-1.html bookmarks-2.html bookmarks-3.html
> bookmarks-4.html bookmarks-5.html bookmarks-6.html bookmarks.html
> [Cache] [Cache.Trash] cert8.db [chatzilla]
> [chrome] cookies.txt cookperm.txt downloads.rdf
> history.dat history.mab hostperm.1 key3.db
> localstore.rdf [Mail] mailViews.dat mimeTypes.rdf
> panacea.dat panels.rdf parent.lock prefs.js
> search.rdf secmod.db URL.tbl XUL.mfl
>
> There are no *.txt files even though they are all text files. They are


Oops, sorry there are two *.txt files for cookies, but most of the
configuration files are not *.txt.

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

---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo@postgresql.org so that your
message can get through to the mailing list cleanly

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-11-2008, 03:16 AM
Kevin Brown
 
Posts: n/a
Default Re: [pgsql-hackers-win32] [BUGS] More SSL questions..

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.



--
Kevin Brown kevin@sysexperts.com

---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 08:51 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com