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
a3c502c8
Commit
a3c502c8
authored
Feb 25, 2009
by
Peter Eisentraut
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove feof(stdin) calls related to when to prompt for a password,
leftovers from when the password was read from stdin.
parent
cd3b7509
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
14 additions
and
21 deletions
+14
-21
contrib/oid2name/oid2name.c
contrib/oid2name/oid2name.c
+2
-3
contrib/pgbench/pgbench.c
contrib/pgbench/pgbench.c
+2
-3
contrib/vacuumlo/vacuumlo.c
contrib/vacuumlo/vacuumlo.c
+2
-3
src/bin/pg_dump/pg_backup_db.c
src/bin/pg_dump/pg_backup_db.c
+2
-3
src/bin/pg_dump/pg_dumpall.c
src/bin/pg_dump/pg_dumpall.c
+2
-3
src/bin/psql/startup.c
src/bin/psql/startup.c
+2
-3
src/bin/scripts/common.c
src/bin/scripts/common.c
+2
-3
No files found.
contrib/oid2name/oid2name.c
View file @
a3c502c8
...
...
@@ -5,7 +5,7 @@
* Originally by
* B. Palmer, bpalmer@crimelabs.net 1-17-2001
*
* $PostgreSQL: pgsql/contrib/oid2name/oid2name.c,v 1.3
3 2007/12/11 02:31:49 tgl
Exp $
* $PostgreSQL: pgsql/contrib/oid2name/oid2name.c,v 1.3
4 2009/02/25 13:24:40 petere
Exp $
*/
#include "postgres_fe.h"
...
...
@@ -293,8 +293,7 @@ sql_conn(struct options * my_opts)
if
(
PQstatus
(
conn
)
==
CONNECTION_BAD
&&
PQconnectionNeedsPassword
(
conn
)
&&
password
==
NULL
&&
!
feof
(
stdin
))
password
==
NULL
)
{
PQfinish
(
conn
);
password
=
simple_prompt
(
"Password: "
,
100
,
false
);
...
...
contrib/pgbench/pgbench.c
View file @
a3c502c8
...
...
@@ -4,7 +4,7 @@
* A simple benchmark program for PostgreSQL
* Originally written by Tatsuo Ishii and enhanced by many contributors.
*
* $PostgreSQL: pgsql/contrib/pgbench/pgbench.c,v 1.8
3 2009/01/01 17:23:32 momjian
Exp $
* $PostgreSQL: pgsql/contrib/pgbench/pgbench.c,v 1.8
4 2009/02/25 13:24:40 petere
Exp $
* Copyright (c) 2000-2009, PostgreSQL Global Development Group
* ALL RIGHTS RESERVED;
*
...
...
@@ -309,8 +309,7 @@ doConnect(void)
if
(
PQstatus
(
conn
)
==
CONNECTION_BAD
&&
PQconnectionNeedsPassword
(
conn
)
&&
password
==
NULL
&&
!
feof
(
stdin
))
password
==
NULL
)
{
PQfinish
(
conn
);
password
=
simple_prompt
(
"Password: "
,
100
,
false
);
...
...
contrib/vacuumlo/vacuumlo.c
View file @
a3c502c8
...
...
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $PostgreSQL: pgsql/contrib/vacuumlo/vacuumlo.c,v 1.3
7 2009/01/01 17:23:32 momjian
Exp $
* $PostgreSQL: pgsql/contrib/vacuumlo/vacuumlo.c,v 1.3
8 2009/02/25 13:24:40 petere
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -91,8 +91,7 @@ vacuumlo(char *database, struct _param * param)
if
(
PQstatus
(
conn
)
==
CONNECTION_BAD
&&
PQconnectionNeedsPassword
(
conn
)
&&
password
==
NULL
&&
!
feof
(
stdin
))
password
==
NULL
)
{
PQfinish
(
conn
);
password
=
simple_prompt
(
"Password: "
,
100
,
false
);
...
...
src/bin/pg_dump/pg_backup_db.c
View file @
a3c502c8
...
...
@@ -5,7 +5,7 @@
* Implements the basic DB functions used by the archiver.
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/bin/pg_dump/pg_backup_db.c,v 1.8
1 2009/02/02 20:07:37 adunstan
Exp $
* $PostgreSQL: pgsql/src/bin/pg_dump/pg_backup_db.c,v 1.8
2 2009/02/25 13:24:40 petere
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -241,8 +241,7 @@ ConnectDatabase(Archive *AHX,
if
(
PQstatus
(
AH
->
connection
)
==
CONNECTION_BAD
&&
PQconnectionNeedsPassword
(
AH
->
connection
)
&&
password
==
NULL
&&
!
feof
(
stdin
))
password
==
NULL
)
{
PQfinish
(
AH
->
connection
);
password
=
simple_prompt
(
"Password: "
,
100
,
false
);
...
...
src/bin/pg_dump/pg_dumpall.c
View file @
a3c502c8
...
...
@@ -6,7 +6,7 @@
* Portions Copyright (c) 1994, Regents of the University of California
*
*
* $PostgreSQL: pgsql/src/bin/pg_dump/pg_dumpall.c,v 1.11
6 2009/02/25 13:03:06
petere Exp $
* $PostgreSQL: pgsql/src/bin/pg_dump/pg_dumpall.c,v 1.11
7 2009/02/25 13:24:40
petere Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -1358,8 +1358,7 @@ connectDatabase(const char *dbname, const char *pghost, const char *pgport,
if
(
PQstatus
(
conn
)
==
CONNECTION_BAD
&&
PQconnectionNeedsPassword
(
conn
)
&&
password
==
NULL
&&
!
feof
(
stdin
))
password
==
NULL
)
{
PQfinish
(
conn
);
password
=
simple_prompt
(
"Password: "
,
100
,
false
);
...
...
src/bin/psql/startup.c
View file @
a3c502c8
...
...
@@ -3,7 +3,7 @@
*
* Copyright (c) 2000-2009, PostgreSQL Global Development Group
*
* $PostgreSQL: pgsql/src/bin/psql/startup.c,v 1.15
3 2009/01/01 17:23:55 momjian
Exp $
* $PostgreSQL: pgsql/src/bin/psql/startup.c,v 1.15
4 2009/02/25 13:24:40 petere
Exp $
*/
#include "postgres_fe.h"
...
...
@@ -189,8 +189,7 @@ main(int argc, char *argv[])
if
(
PQstatus
(
pset
.
db
)
==
CONNECTION_BAD
&&
PQconnectionNeedsPassword
(
pset
.
db
)
&&
password
==
NULL
&&
!
feof
(
stdin
))
password
==
NULL
)
{
PQfinish
(
pset
.
db
);
password
=
simple_prompt
(
password_prompt
,
100
,
false
);
...
...
src/bin/scripts/common.c
View file @
a3c502c8
...
...
@@ -7,7 +7,7 @@
* Portions Copyright (c) 1996-2009, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* $PostgreSQL: pgsql/src/bin/scripts/common.c,v 1.3
3 2009/01/01 17:23:55 momjian
Exp $
* $PostgreSQL: pgsql/src/bin/scripts/common.c,v 1.3
4 2009/02/25 13:24:40 petere
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -124,8 +124,7 @@ connectDatabase(const char *dbname, const char *pghost, const char *pgport,
if
(
PQstatus
(
conn
)
==
CONNECTION_BAD
&&
PQconnectionNeedsPassword
(
conn
)
&&
password
==
NULL
&&
!
feof
(
stdin
))
password
==
NULL
)
{
PQfinish
(
conn
);
password
=
simple_prompt
(
"Password: "
,
100
,
false
);
...
...
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