Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
33bf73a7
Commit
33bf73a7
authored
Aug 11, 2006
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make the psql line counter 64-bit so it can handle files > 4gig lines.
David Fetter
parent
6932048b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
src/bin/psql/common.c
src/bin/psql/common.c
+2
-2
src/bin/psql/mainloop.c
src/bin/psql/mainloop.c
+2
-2
src/bin/psql/settings.h
src/bin/psql/settings.h
+2
-2
No files found.
src/bin/psql/common.c
View file @
33bf73a7
...
...
@@ -3,7 +3,7 @@
*
* Copyright (c) 2000-2006, PostgreSQL Global Development Group
*
* $PostgreSQL: pgsql/src/bin/psql/common.c,v 1.12
2 2006/07/14 14:52:26
momjian Exp $
* $PostgreSQL: pgsql/src/bin/psql/common.c,v 1.12
3 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
);
...
...
src/bin/psql/mainloop.c
View file @
33bf73a7
...
...
@@ -3,7 +3,7 @@
*
* Copyright (c) 2000-2006, PostgreSQL Global Development Group
*
* $PostgreSQL: pgsql/src/bin/psql/mainloop.c,v 1.8
1 2006/07/14 14:52:26
momjian Exp $
* $PostgreSQL: pgsql/src/bin/psql/mainloop.c,v 1.8
2 2006/08/11 19:20:59
momjian Exp $
*/
#include "postgres_fe.h"
#include "mainloop.h"
...
...
@@ -44,7 +44,7 @@ MainLoop(FILE *source)
/* Save the prior command source */
FILE
*
prev_cmd_source
;
bool
prev_cmd_interactive
;
u
nsigned
int
prev_lineno
;
u
int64
prev_lineno
;
/* Save old settings */
prev_cmd_source
=
pset
.
cur_cmd_source
;
...
...
src/bin/psql/settings.h
View file @
33bf73a7
...
...
@@ -3,7 +3,7 @@
*
* Copyright (c) 2000-2006, PostgreSQL Global Development Group
*
* $PostgreSQL: pgsql/src/bin/psql/settings.h,v 1.2
7 2006/03/05 15:58:52
momjian Exp $
* $PostgreSQL: pgsql/src/bin/psql/settings.h,v 1.2
8 2006/08/11 19:20:59
momjian Exp $
*/
#ifndef SETTINGS_H
#define SETTINGS_H
...
...
@@ -50,7 +50,7 @@ typedef struct _psqlSettings
char
*
inputfile
;
/* for error reporting */
char
*
dirname
;
/* current directory for \s display */
u
nsigned
lineno
;
/* also for error reporting */
u
int64
lineno
;
/* also for error reporting */
bool
timing
;
/* enable timing of all queries */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment