Re: date formatting and tab-complete patch - Mailing list pgsql-hackers

From Manuel Sugawara
Subject Re: date formatting and tab-complete patch
Date
Msg-id m3elmamtd4.fsf@dep4.fciencias.unam.mx
Whole thread Raw
In response to Re: date formatting and tab-complete patch  (Peter Eisentraut <peter_e@gmx.net>)
Responses Re: date formatting and tab-complete patch  (Karel Zak <zakkr@zf.jcu.cz>)
List pgsql-hackers
Peter Eisentraut <peter_e@gmx.net> writes:

> Manuel Sugawara writes:
>
> > Guys, attached is a patch against the 7.2b3 source tree which improves
> > the i18n of the date formatting functions, using the nl_langinfo(3)
> > function,
>
> What's the effect of that?

Currently none since I miss another part of the patch :-( -attached-,
but if you add:

setlocale(LC_TIME, "");

in src/backend/main/main.c you will see month and day names printed
according to the current locale.

regress=#  select to_char(now(),'fmday dd/month/yyyy');
         to_char
--------------------------
 martes 04/diciembre/2001
(1 row)

> ISTM that in the situation that tab completion covers tables and views are
> not interchangeable.  Do you have an example?

select * from <TAB>
\d <TAB>

neither works for views; that's annoying, since most access to many
databases are done through views. Actually the only counterexamples I
found are DROP and ALTER TABLE but, may be, that's enough.

Regards,
Manuel.


Attachment

pgsql-hackers by date:

Previous
From: Hiroshi Inoue
Date:
Subject: Re: FW: [CYGWIN] 7.2b3 postmaster doesn't start on Win98
Next
From: Tatsuo Ishii
Date:
Subject: Re: Undocumented feature costs a lot of performance in