*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/commands/vacuum.c,v 1.41 1997/08/21 03:01:36 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/commands/vacuum.c,v 1.42 1997/08/22 04:13:08 momjian Exp $
*
*-------------------------------------------------------------------------
*/
while (HeapTupleIsValid(atup = heap_getnext(asdesc, 0, &abuf)))
{
int i;
- double selratio; /* average ratio of rows selected for a random constant */
+ float32data selratio; /* average ratio of rows selected for a random constant */
VacAttrStats *stats;
Datum values[ Natts_pg_statistic ];
char nulls[ Natts_pg_statistic ];
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/bin/psql/Attic/psql.c,v 1.85 1997/08/22 00:17:26 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/bin/psql/Attic/psql.c,v 1.86 1997/08/22 04:13:18 momjian Exp $
*
*-------------------------------------------------------------------------
*/
char *pagerenv;
FILE *fout;
- if (settings.notty == 0 &&
+ if (ps->notty == 0 &&
(pagerenv = getenv("PAGER")) &&
(pagerenv[0] != '\0') &&
(fout = popen(pagerenv, "w")))
static void
-do_help(const char *topic)
+do_help(PsqlSettings * ps, const char *topic)
{
if (!topic) {
FILE *fout;
if (strcmp(topic, "*") == 0 &&
- (settings.notty == 0) &&
+ (ps->notty == 0) &&
(pagerenv = getenv("PAGER")) &&
(pagerenv[0] != '\0') &&
(fout = popen(pagerenv, "w")))
break;
case 'h': /* help */
{
- do_help(optarg);
+ do_help(settings, optarg);
break;
}
case 'i': /* \i is include file */