Lists: | pgsql-generalpgsql-patches |
---|
From: | Greg Copeland <greg(at)CopelandConsulting(dot)Net> |
---|---|
To: | General PostgresSQL Mailing List <pgsql-general(at)postgresql(dot)org> |
Subject: | SQL Comments |
Date: | 2002-08-07 23:27:46 |
Message-ID: | 1028762867.18630.3.camel@mouse.copelandconsulting.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-general pgsql-patches |
According to
http://www.commandprompt.com/ppbook/index.lxp?lxpwrap=x17549%2ehtm:
"\dd Displays all descriptions for all database objects."
When I do this, I get, "ERROR: No such attribute a.oid". Is this a
feature? The documentation incorrect? Changed since it was written?
Also, I noticed that none of the system tables appear to have any
comments on them. Is that by design, lack of value on doing so, or
something else I don't understand?
I'm using the latest (as of several minutes ago) from CVS.
Greg
From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Greg Copeland <greg(at)CopelandConsulting(dot)Net> |
Cc: | General PostgresSQL Mailing List <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: SQL Comments |
Date: | 2002-08-08 13:57:22 |
Message-ID: | 2935.1028815042@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | Postg배트맨 토토SQL Postg와이즈 토토SQL |
Greg Copeland <greg(at)CopelandConsulting(dot)Net> writes:
> "\dd Displays all descriptions for all database objects."
> When I do this, I get, "ERROR: No such attribute a.oid". Is this a
> feature? The documentation incorrect? Changed since it was written?
Sounds to me like you are using an older psql with a newer server.
Try to get 'em in sync.
> Also, I noticed that none of the system tables appear to have any
> comments on them. Is that by design, lack of value on doing so, or
> something else I don't understand?
Most of the pg_proc and pg_type entries have comments on 'em --- a grep
for DESCR macros counts:
/home/postgres/pgsql/src/include/catalog/pg_am.h: 4
/home/postgres/pgsql/src/include/catalog/pg_class.h: 8
/home/postgres/pgsql/src/include/catalog/pg_database.h: 1
/home/postgres/pgsql/src/include/catalog/pg_language.h: 3
/home/postgres/pgsql/src/include/catalog/pg_namespace.h: 3
/home/postgres/pgsql/src/include/catalog/pg_proc.h: 1281
/home/postgres/pgsql/src/include/catalog/pg_type.h: 53
There's never been any concerted effort to put comments on anything
else.
regards, tom lane
From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Greg Copeland <greg(at)copelandconsulting(dot)net> |
Cc: | PostgresSQL General Mailing List <pgsql-general(at)postgresql(dot)org>, Peter Eisentraut <peter_e(at)gmx(dot)net> |
Subject: | Re: SQL Comments |
Date: | 2002-08-08 14:37:32 |
Message-ID: | 3367.1028817452@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-general pgsql-patches |
Greg Copeland <greg(at)copelandconsulting(dot)net> writes:
> Should the version number be considered for output when psql is started
> up for interactive use? I'm fairly sure I would of caught this my self
> if a version number were there to key off of.
> Perhaps it should say something like:
> Welcome to psql, the PostgreSQL (v7.3.1) interactive terminal.
I think
Welcome to psql v7.3, the PostgreSQL interactive terminal.
would read more naturally ... seems like a good idea in principle
though, especially since 7.3 is going to introduce a *lot* of breakage
for the backslash commands of older psql versions.
> Maybe even a slash command which not only shows the postgres version
> that psql was compiled from but also the server version it's currently
> connected with?
> Example:
> # \v
> PSQL version 7.3.1
> Backend version 7.3.1
Maybe. Peter, any opinion about that?
regards, tom lane
From: | Peter Eisentraut <peter_e(at)gmx(dot)net> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | Greg Copeland <greg(at)copelandconsulting(dot)net>, PostgresSQL General Mailing List <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: SQL Comments |
Date: | 2002-08-08 21:21:13 |
Message-ID: | Pine.LNX.4.44.0208082319520.927-100000@localhost.localdomain |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-general pgsql-patches |
Tom Lane writes:
> I think
> Welcome to psql v7.3, the PostgreSQL interactive terminal.
> would read more naturally ...
As long as you don't put the little "v" there, I don't mind.
> > Example:
> > # \v
> > PSQL version 7.3.1
\echo :VERSION
> > Backend version 7.3.1
select version();
--
Peter Eisentraut peter_e(at)gmx(dot)net
From: | Alvaro Herrera <alvherre(at)atentus(dot)com> |
---|---|
To: | pgsql-patches(at)postgresql(dot)org |
Subject: | little psql additions |
Date: | 2002-08-09 00:50:14 |
Message-ID: | Pine.LNX.4.44.0208082043170.14590-300000@cm-lcon1-46-187.cm.vtr.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-general pgsql-patches |
I append two little patches to psql. One is for \v. It is very simple
in that it ignores multibyte stuff, for example.
template1=# \v
Client:
PostgreSQL 7.3devel on i686-pc-linux-gnu, compiled by GCC 2.96
Server:
PostgreSQL 7.2.1 on i686-pc-linux-gnu, compiled by GCC 2.96
The second enables tab-complete to analyze. It ignores schema stuff (so
does every tab-completion command AFAICS)
--
Alvaro Herrera (<alvherre[a]atentus.com>)
"Nunca se desea ardientemente lo que solo se desea por razon" (F. Alexandre)
Attachment | Content-Type | Size |
---|---|---|
psql.tab.patch | text/plain | 928 bytes |
psql.version.patch | text/plain | 794 bytes |
From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | Alvaro Herrera <alvherre(at)atentus(dot)com> |
Cc: | pgsql-patches(at)postgresql(dot)org |
Subject: | Re: little psql additions |
Date: | 2002-08-11 05:11:17 |
Message-ID: | 200208110511.g7B5BIp18447@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-general pgsql-patches |
I am taking only the tab completion part of this. Tom Lane added the
version to the psql startup display.
Your patch has been added to the PostgreSQL unapplied patches list at:
http://candle.pha.pa.us/cgi-bin/pgpatches
I will try to apply it within the next 48 hours.
---------------------------------------------------------------------------
Alvaro Herrera wrote:
>
> I append two little patches to psql. One is for \v. It is very simple
> in that it ignores multibyte stuff, for example.
>
> template1=# \v
> Client:
> PostgreSQL 7.3devel on i686-pc-linux-gnu, compiled by GCC 2.96
> Server:
> PostgreSQL 7.2.1 on i686-pc-linux-gnu, compiled by GCC 2.96
>
> The second enables tab-complete to analyze. It ignores schema stuff (so
> does every tab-completion command AFAICS)
>
> --
> Alvaro Herrera (<alvherre[a]atentus.com>)
> "Nunca se desea ardientemente lo que solo se desea por razon" (F. Alexandre)
Content-Description: Analyze tab completion
[ Attachment, skipping... ]
Content-Description: Version backslash command
[ Attachment, skipping... ]
>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: Have you checked our extensive FAQ?
>
> http://www.postgresql.org/users-lounge/docs/faq.html
--
Bruce Momjian | http://candle.pha.pa.us
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
From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | Alvaro Herrera <alvherre(at)atentus(dot)com> |
Cc: | pgsql-patches(at)postgresql(dot)org |
Subject: | Re: little psql additions |
Date: | 2002-08-15 02:44:54 |
Message-ID: | 200208150244.g7F2isu04721@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-general pgsql-patches |
I have applied the tab completion part of this patch. The version
feature was added to the standard startup banner.
---------------------------------------------------------------------------
Alvaro Herrera wrote:
>
> I append two little patches to psql. One is for \v. It is very simple
> in that it ignores multibyte stuff, for example.
>
> template1=# \v
> Client:
> PostgreSQL 7.3devel on i686-pc-linux-gnu, compiled by GCC 2.96
> Server:
> PostgreSQL 7.2.1 on i686-pc-linux-gnu, compiled by GCC 2.96
>
> The second enables tab-complete to analyze. It ignores schema stuff (so
> does every tab-completion command AFAICS)
>
> --
> Alvaro Herrera (<alvherre[a]atentus.com>)
> "Nunca se desea ardientemente lo que solo se desea por razon" (F. Alexandre)
Content-Description: Analyze tab completion
[ Attachment, skipping... ]
Content-Description: Version backslash command
[ Attachment, skipping... ]
>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: Have you checked our extensive FAQ?
>
> http://www.postgresql.org/users-lounge/docs/faq.html
--
Bruce Momjian | http://candle.pha.pa.us
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