if (write(dbh->db_fd, data, dbh->db_rlen) != dbh->db_rlen)
return DBF_ERROR;
-/* There's a 0x1A at the end of a dbf-file */
+ /* There's a 0x1A at the end of a dbf-file */
if (where == dbh->db_records)
{
if (write(dbh->db_fd, &end, 1) != 1)
/*
- * $Revision: 1.3 $
- * $Id: dmetaphone.c,v 1.3 2004/08/29 05:06:35 momjian Exp $
+ * $Revision: 1.4 $
+ * $Id: dmetaphone.c,v 1.4 2004/10/07 15:21:49 momjian Exp $
*/
current += 2;
}
else
-/* also takes care of 'HH' */
+ /* also takes care of 'HH' */
current += 1;
break;
pc->num = 0;
}
else
-/* use an existing one */
+ /* use an existing one */
pc = (CTX *) fcinfo->context;
/* Are we done yet? */
if (pc->num >= pc->p->items)
rsi->isDone = ExprEndResult;
}
else
-/* nope, return the next value */
+ /* nope, return the next value */
{
int val = pc->p->array[pc->num++];
}
else
-/* DELETE */
+ /* DELETE */
snprintf(sql, sizeof(sql), "delete from %s where ", relname);
}
/* end of INSERT */
}
-/* UPDATE/DELETE: */
+ /* UPDATE/DELETE: */
oldtimeon = SPI_getbinval(trigtuple, tupdesc, attnum[a_time_on], &isnull);
if (isnull)
elog(ERROR, "timetravel (%s): %s must be NOT NULL", relname, args[a_time_on]);
/* SPI_pfree(tmptuple); */
}
else
-/* DELETE case */
+ /* DELETE case */
rettuple = trigtuple;
SPI_finish(); /* don't forget say Bye to SPI mgr */
SRF_RETURN_NEXT(funcctx, Float8GetDatum(result));
}
else
-/* do when there is no more left */
+ /* do when there is no more left */
SRF_RETURN_DONE(funcctx);
}
}
}
else
-/* do when there is no more left */
+ /* do when there is no more left */
{
/* release SPI related resources */
SPI_finish();
parse_params(params, paramstr);
}
else
-/* No parameters */
+ /* No parameters */
params[0] = NULL;
/* Setup parser */
* Portions Copyright (c) 1996-2004, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $PostgreSQL: pgsql/src/backend/access/transam/xlog.c,v 1.170 2004/09/16 16:58:26 tgl Exp $
+ * $PostgreSQL: pgsql/src/backend/access/transam/xlog.c,v 1.171 2004/10/07 15:21:51 momjian Exp $
*
*-------------------------------------------------------------------------
*/
ereport(FATAL,
(errmsg("requested recovery stop point is before end time of backup dump")));
else
-/* ran off end of WAL */
+ /* ran off end of WAL */
ereport(FATAL,
(errmsg("WAL ends before end time of backup dump")));
}
*
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/backend/commands/typecmds.c,v 1.63 2004/08/29 05:06:41 momjian Exp $
+ * $PostgreSQL: pgsql/src/backend/commands/typecmds.c,v 1.64 2004/10/07 15:21:52 momjian Exp $
*
* DESCRIPTION
* The "DefineFoo" routines take the parse tree and pick out the
new_record_repl[Anum_pg_type_typdefault - 1] = 'r';
}
else
-/* Default is NULL, drop it */
+ /* Default is NULL, drop it */
{
new_record_nulls[Anum_pg_type_typdefaultbin - 1] = 'n';
new_record_repl[Anum_pg_type_typdefaultbin - 1] = 'r';
* OX2 operator according to Syswerda
* (The Genetic Algorithms Handbook, ed L Davis)
*
-* $PostgreSQL: pgsql/src/backend/optimizer/geqo/geqo_ox2.c,v 1.9 2003/11/29 22:39:49 pgsql Exp $
+* $PostgreSQL: pgsql/src/backend/optimizer/geqo/geqo_ox2.c,v 1.10 2004/10/07 15:21:52 momjian Exp $
*
*-------------------------------------------------------------------------
*/
select++; /* next city in the select list */
}
else
-/* city isn't used yet, so inherit from tour2 */
+ /* city isn't used yet, so inherit from tour2 */
offspring[k] = tour2[k];
}
*
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/backend/utils/adt/acl.c,v 1.111 2004/08/29 05:06:49 momjian Exp $
+ * $PostgreSQL: pgsql/src/backend/utils/adt/acl.c,v 1.112 2004/10/07 15:21:53 momjian Exp $
*
*-------------------------------------------------------------------------
*/
ACLITEM_SET_IDTYPE(*aclitem, ACL_IDTYPE_UID);
}
else
-/* (g_grantee != 0) */
+ /* (g_grantee != 0) */
{
aclitem ->ai_grantee = g_grantee;
* ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
* SOFTWARE.
*
- * $PostgreSQL: pgsql/src/backend/utils/adt/inet_net_pton.c,v 1.18 2003/11/29 19:51:58 pgsql Exp $
+ * $PostgreSQL: pgsql/src/backend/utils/adt/inet_net_pton.c,v 1.19 2004/10/07 15:21:53 momjian Exp $
*/
#include "postgres.h"
else if (*odst >= 128) /* Class B */
bits = 16;
else
-/* Class A */
+ /* Class A */
bits = 8;
/* If imputed mask is narrower than specified octets, widen. */
if (bits >= 8 && bits < ((dst - odst) * 8))
*
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/backend/utils/adt/rowtypes.c,v 1.6 2004/08/29 05:06:49 momjian Exp $
+ * $PostgreSQL: pgsql/src/backend/utils/adt/rowtypes.c,v 1.7 2004/10/07 15:21:53 momjian Exp $
*
*-------------------------------------------------------------------------
*/
if (*ptr == ',')
ptr++;
else
-/* *ptr must be ')' */
+ /* *ptr must be ')' */
ereport(ERROR,
(errcode(ERRCODE_INVALID_TEXT_REPRESENTATION),
errmsg("malformed record literal: \"%s\"", string),
*
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/backend/utils/error/elog.c,v 1.151 2004/09/22 03:55:26 neilc Exp $
+ * $PostgreSQL: pgsql/src/backend/utils/error/elog.c,v 1.152 2004/10/07 15:21:54 momjian Exp $
*
*-------------------------------------------------------------------------
*/
write_eventlog(EVENTLOG_ERROR_TYPE, errbuf);
}
else
-/* Not running as service, write to stderr */
+ /* Not running as service, write to stderr */
vfprintf(stderr, fmt, ap);
#endif
va_end(ap);
*
* Portions Copyright (c) 1996-2004, PostgreSQL Global Development Group
*
- * $PostgreSQL: pgsql/src/bin/pg_ctl/pg_ctl.c,v 1.31 2004/09/02 20:07:50 tgl Exp $
+ * $PostgreSQL: pgsql/src/bin/pg_ctl/pg_ctl.c,v 1.32 2004/10/07 15:21:55 momjian Exp $
*
*-------------------------------------------------------------------------
*/
write_eventlog(EVENTLOG_ERROR_TYPE, errbuf);
}
else
-/* Not running as service, write to stderr */
+ /* Not running as service, write to stderr */
vfprintf(stderr, fmt, ap);
#endif
va_end(ap);
fprintf(stdout, _("%s: a standalone backend \"postgres\" is running (PID: %ld)\n"), progname, pid);
}
else
-/* postmaster */
+ /* postmaster */
{
char **optlines;
if (strchr(optarg, '\\'))
register_username = xstrdup(optarg);
else
-/* Prepend .\ for local accounts */
+ /* Prepend .\ for local accounts */
{
register_username = malloc(strlen(optarg) + 3);
if (!register_username)
*
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/bin/pg_dump/pg_backup_tar.c,v 1.44 2004/08/29 05:06:53 momjian Exp $
+ * $PostgreSQL: pgsql/src/bin/pg_dump/pg_backup_tar.c,v 1.45 2004/10/07 15:21:55 momjian Exp $
*
*-------------------------------------------------------------------------
*/
* Future: DO SEEK(0) and retry. */
die_horribly(AH, modulename, "could not find file %s in archive\n", filename);
else
-/* Any file OK, non left, so return NULL */
+ /* Any file OK, non left, so return NULL */
return NULL;
}
if (filename)
die_horribly(AH, modulename, "could not find header for file %s in tar archive\n", filename);
else
-/* We're just scanning the archibe for the next file, so return null */
+ /* We're just scanning the archibe for the next file, so return null */
{
free(th);
return NULL;
*
* Copyright (c) 2000-2004, PostgreSQL Global Development Group
*
- * $PostgreSQL: pgsql/src/bin/psql/command.c,v 1.125 2004/08/29 05:06:54 momjian Exp $
+ * $PostgreSQL: pgsql/src/bin/psql/command.c,v 1.126 2004/10/07 15:21:56 momjian Exp $
*/
#include "postgres_fe.h"
#include "command.h"
else if (dbparam != new_dbname) /* no new db */
printf(gettext("You are now connected as new user \"%s\".\n"), new_user);
else
-/* both new */
+ /* both new */
printf(gettext("You are now connected to database \"%s\" as user \"%s\".\n"),
PQdb(pset.db), PQuser(pset.db));
}
* Portions Copyright (c) 1996-2004, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $PostgreSQL: pgsql/src/include/executor/execdebug.h,v 1.23 2004/08/29 04:13:06 momjian Exp $
+ * $PostgreSQL: pgsql/src/include/executor/execdebug.h,v 1.24 2004/10/07 15:21:56 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#define IncrIndexProcessed() NIndexTupleProcessed++
#define IncrIndexInserted() NIndexTupleInserted++
#else
-/* stop compiler warnings */
+/* stop compiler warnings */
#define IncrRetrieved() (void)(0)
#define IncrAppended() (void)(0)
#define IncrDeleted() (void)(0)
* ENHANCEMENTS, OR MODIFICATIONS.
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/pl/plperl/plperl.c,v 1.52 2004/10/06 16:36:02 momjian Exp $
+ * $PostgreSQL: pgsql/src/pl/plperl/plperl.c,v 1.53 2004/10/07 15:21:57 momjian Exp $
*
**********************************************************************/
}
else
-/* perl string to Datum */
-
+ /* perl string to Datum */
retval = FunctionCall3(&prodesc->result_in_func,
PointerGetDatum(SvPV(perlret, PL_na)),
ObjectIdGetDatum(prodesc->result_typioparam),
*
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/port/exec.c,v 1.28 2004/09/27 23:58:09 momjian Exp $
+ * $PostgreSQL: pgsql/src/port/exec.c,v 1.29 2004/10/07 15:21:57 momjian Exp $
*
*-------------------------------------------------------------------------
*/
log_error("could not find a \"%s\" to execute", argv0);
return -1;
-#if 0
-
+#if NOT_USED
/*
* Win32 has a native way to find the executable name, but the above
* method works too.
return BADCH;
}
else
-/* white space */
+ /* white space */
optarg = nargv[optind];
place = EMSG;
++optind;
/*
- * $PostgreSQL: pgsql/src/test/regress/regress.c,v 1.60 2004/04/01 21:28:47 tgl Exp $
+ * $PostgreSQL: pgsql/src/test/regress/regress.c,v 1.61 2004/10/07 15:21:58 momjian Exp $
*/
#include "postgres.h"
cnulls[attnum[1] - 1] = ' ';
}
else
-/* DELETE */
+ /* DELETE */
{
cvals[attnum[1] - 1] = newoff; /* stop_date eq current date */
cnulls[attnum[1] - 1] = ' ';
SPI_freetuple(tmptuple);
}
else
-/* DELETE */
+ /* DELETE */
rettuple = trigtuple;
SPI_finish(); /* don't forget say Bye to SPI mgr */