From 33bf73a79ae9175093d13674b5f28b89affdbca5 Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Fri, 11 Aug 2006 19:20:59 +0000 Subject: Make the psql line counter 64-bit so it can handle files > 4gig lines. David Fetter --- src/bin/psql/common.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/bin/psql/common.c') diff --git a/src/bin/psql/common.c b/src/bin/psql/common.c index b7755aa374e..ca77b81808f 100644 --- a/src/bin/psql/common.c +++ b/src/bin/psql/common.c @@ -3,7 +3,7 @@ * * Copyright (c) 2000-2006, PostgreSQL Global Development Group * - * $PostgreSQL: pgsql/src/bin/psql/common.c,v 1.122 2006/07/14 14:52:26 momjian Exp $ + * $PostgreSQL: pgsql/src/bin/psql/common.c,v 1.123 2006/08/11 19:20:59 momjian Exp $ */ #include "postgres_fe.h" #include "common.h" @@ -188,7 +188,7 @@ psql_error(const char *fmt,...) fflush(pset.queryFout); if (pset.inputfile) - fprintf(stderr, "%s:%s:%u: ", pset.progname, pset.inputfile, pset.lineno); + fprintf(stderr, "%s:%s:" UINT64_FORMAT ": ", pset.progname, pset.inputfile, pset.lineno); va_start(ap, fmt); vfprintf(stderr, _(fmt), ap); va_end(ap); -- cgit v1.2.3