Comments and datestyle
am 02.12.2002 20:26:07 von Kelvin Varst
Hi,
Q1: Is there any way I can get the comments, I wrote on each colomn when I
created the table?
Q2: I have a datestyle on the database witch is ISO, EUROPEAN (02-12-2002).
Then I have a coloumn with the type Date. When I query the table, the format
written on my homepage is ISO, US (2002-12-02). How can I convert the
datestyle on the homepage, so it matches the database datestyle?
Kelvin :-)
---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?
http://archives.postgresql.org
Re: Comments and datestyle
am 02.12.2002 21:16:31 von Keary Suska
on 12/2/02 12:26, kelvin@varst.dk purportedly said:
> Q1: Is there any way I can get the comments, I wrote on each colomn when I
> created the table?
Well, there is no mechanism in Postgres for specifying comments during table
creation, but some apps emulate this by calling the COMMENT command as
applicable. In any case, to retrieve table comments:
SELECT pg_description.description FROM pg_class, pg_description WHERE
pg_class.relname = 'table_name' AND pg_class.oid = pg_description.classoid
> Q2: I have a datestyle on the database witch is ISO, EUROPEAN (02-12-2002).
> Then I have a coloumn with the type Date. When I query the table, the format
> written on my homepage is ISO, US (2002-12-02). How can I convert the
> datestyle on the homepage, so it matches the database datestyle?
DATESTYLE is a run-time configuration variable, and is only valid for the
connected session, which isn't reliable in an HTTP environment. You are
better off using to_char() to format your date output.
Keary Suska
Esoteritech, Inc.
"Leveraging Open Source for a better Internet"
---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?
http://www.postgresql.org/users-lounge/docs/faq.html
Re: Graphical representation of database schema
am 05.12.2002 19:47:13 von angelo.rigo
do you know agata report?
i am using and it does export to: graphics, txt, sql, dia, i cant remenber
the other formarts
try it ! it?s so helpful
http://agata.codigolivre.org.br/
'>'-- Mensagem Original --
'>'From: "Adrian Tineo"
'>'To: pgsql-php@postgresql.org
'>'Subject: [PHP] Graphical representation of database schema
'>'Date: Thu, 5 Dec 2002 15:58:08 +0100
'>'
'>'
'>'Is there any tool to semi-automatically generate documentation and/or
'>'graphics for a database schema? Sort of javadoc for postgresql instead
of
'>'Java.
'>'
'>'Thanks
'>'
'>'Adrian Tineo
'>'
'>'
'>'---------------------------(end of broadcast)---------------------------
'>'TIP 4: Don't 'kill -9' the postmaster
________________________________________
A busca mais veloz e precisa da internet. Acesse agora: http://www.zoom.com=
..br.
---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?
http://www.postgresql.org/users-lounge/docs/faq.html