createlang/droplang -l outputs

From: Tomoaki Sato <sato(at)sraoss(dot)co(dot)jp>
To: pgsql-hackers(at)postgresql(dot)org
Subject: createlang/droplang -l outputs
Date: 2007-08-09 16:16:14
Message-ID: 20070810.011614.74736477.sato@sraoss.co.jp
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

The header in the list of already installed languages shown by
createlang/droplang with the -l option is not printed from 8.2.

PostgreSQL 8.2:
$ createlang -l
plpgsql | yes

PostgreSQL 8.1:
$ createlang -l
Procedural Languages
Name | Trusted?
---------+----------
plpgsql | yes

The structure member 'start_table' is added to the 'printTableOpt' in
the 'src/bin/psql/print.h' from 8.2. But the value of the
'start_table' is not set to true.

Regards,

Index: src/bin/scripts/createlang.c
===================================================================
RCS file: /projects/cvsroot/pgsql/src/bin/scripts/createlang.c,v
retrieving revision 1.24
diff -u -r1.24 createlang.c
--- src/bin/scripts/createlang.c 14 Jul 2006 14:52:27 -0000 1.24
+++ src/bin/scripts/createlang.c 9 Aug 2007 14:46:31 -0000
@@ -138,6 +138,7 @@
memset(&popt, 0, sizeof(popt));
popt.topt.format = PRINT_ALIGNED;
popt.topt.border = 1;
+ popt.topt.start_table = true;
popt.topt.encoding = PQclientEncoding(conn);
popt.title = _("Procedural Languages");
printQuery(result, &popt, stdout, NULL);
Index: src/bin/scripts/droplang.c
===================================================================
RCS file: /projects/cvsroot/pgsql/src/bin/scripts/droplang.c,v
retrieving revision 1.21
diff -u -r1.21 droplang.c
--- src/bin/scripts/droplang.c 31 May 2006 11:02:42 -0000 1.21
+++ src/bin/scripts/droplang.c 9 Aug 2007 14:46:31 -0000
@@ -149,6 +149,7 @@
memset(&popt, 0, sizeof(popt));
popt.topt.format = PRINT_ALIGNED;
popt.topt.border = 1;
+ popt.topt.start_table = true;
popt.topt.encoding = PQclientEncoding(conn);
popt.title = _("Procedural Languages");
printQuery(result, &popt, stdout, NULL);

----
Tomoaki Sato <sato(at)sraoss(dot)co(dot)jp>
SRA OSS, Inc. Japan

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Gregory Stark 2007-08-09 17:09:30 Re: HOT patch, missing things
Previous Message Gregory Stark 2007-08-09 16:06:51 Re: Problem with locks