Return-Path: pg_adm@postgres.berkeley.edu
Received: by postgres.Berkeley.EDU (5.61/1.29)
	id AA26052; Thu, 11 Jun 92 08:43:14 -0700
Message-Id: <9206111543.AA26052@postgres.Berkeley.EDU>
From: Stuart Pook <stuart@exogene.genethon.fr>
Subject: the (undocumented) -Q flag to the monitor
To: postgres@postgres.berkeley.edu
Sender: pg_adm@postgres.berkeley.edu
Organization: Genethon, 13 Place de Rungis, 75013 Paris, France
 tel +33 1 45.65.13.00, fax +33 1 45.88.52.20
X-Face: "6o}6kk")qjUnYYq-`3_.vGq;@xj`3>#I/>4>E>DldCv:X#2%Rm+dr9HVN`g'#QgZFgsYsY
 .Q)bH:AoaW(n~=2B4aY?Q?{)1]&J+:LRX,qB>k{=6`K#2tRitzHKmi_9`}Lx0xdI*r!?MVNj7za"pZ
 *_QEm})y`y=vyyy~^0GY"HTvSCnv}eP*?{%zJ<r'BRk[r|J#;Im"Vp]!L
Date: Thu, 11 Jun 92 17:38:41 +0200
From: Stuart Pook <stuart@exogene.genethon.fr>

I think that there is a very minor bug in the handling of this flag.
If you type "monitor -Q yack" you do not end up in the database yack
but rather in your default database.  This is because the code says:

    while ((c = getopt(argc, argv, "h:p:t:o:d:qTNQ:c:")) != EOF) {

ie, -Q is to be followed by an argument.  I would suggest removing the
":" after the Q.

Stuart

PS.  Version 3.1 on a Sun4 running SunOS 4.1.2.
PPS. Why "EOF" and not "-1"?
