Search Postgresql Archives

Re: Making sure \timing is on

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, May 13, 2008 at 11:36:57AM -0400, Tom Lane wrote:
> David Fetter <david@xxxxxxxxxx> writes:
> >>> Surely this is merely proof of concept and not a complete patch.
> >> 
> >> Next patch attached :)
> 
> Uh, my point was that the agreement was to do this to *all* of
> psql's toggling backslash commands, not only \timing.

Done :)

Cheers,
David.
-- 
David Fetter <david@xxxxxxxxxx> http://fetter.org/
Phone: +1 415 235 3778  AIM: dfetter666  Yahoo!: dfetter
Skype: davidfetter      XMPP: david.fetter@xxxxxxxxx

Remember to vote!
Consider donating to Postgres: http://www.postgresql.org/about/donate
Index: src/bin/psql/describe.c
===================================================================
RCS file: /projects/cvsroot/pgsql/src/bin/psql/describe.c,v
retrieving revision 1.168
diff -c -c -r1.168 describe.c
*** src/bin/psql/describe.c	2 May 2008 10:16:16 -0000	1.168
--- src/bin/psql/describe.c	4 May 2008 23:54:53 -0000
***************
*** 307,315 ****
  						  "    WHEN t.typlen < 0\n"
  						  "      THEN CAST('var' AS pg_catalog.text)\n"
  						  "    ELSE CAST(t.typlen AS pg_catalog.text)\n"
! 						  "  END AS \"%s\",\n",
  						  gettext_noop("Internal name"),
! 						  gettext_noop("Size"));
  	appendPQExpBuffer(&buf,
  				"  pg_catalog.obj_description(t.oid, 'pg_type') as \"%s\"\n",
  					  gettext_noop("Description"));
--- 307,325 ----
  						  "    WHEN t.typlen < 0\n"
  						  "      THEN CAST('var' AS pg_catalog.text)\n"
  						  "    ELSE CAST(t.typlen AS pg_catalog.text)\n"
! 						  "  END AS \"%s\",\n"
! 						  "  pg_catalog.array_to_string(\n"
! 						  "  	 ARRAY(\n"
! 						  "		     SELECT e.enumlabel\n"
! 						  "          FROM pg_catalog.pg_enum e\n"
! 						  "          WHERE e.enumtypid = t.oid\n"
! 						  "          ORDER BY e.oid\n"
! 						  "      ),\n"
! 						  "      E'\\n'\n"
! 						  "  ) AS \"%s\",\n",
  						  gettext_noop("Internal name"),
! 						  gettext_noop("Size"),
! 						  gettext_noop("Elements"));
  	appendPQExpBuffer(&buf,
  				"  pg_catalog.obj_description(t.oid, 'pg_type') as \"%s\"\n",
  					  gettext_noop("Description"));

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux