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
1e9e5def
Commit
1e9e5def
authored
Jul 06, 2001
by
Peter Eisentraut
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use CONNECTION_OK to determine whether startup phase is complete.
parent
4fc5b32b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
6 deletions
+3
-6
src/interfaces/libpq/fe-connect.c
src/interfaces/libpq/fe-connect.c
+2
-4
src/interfaces/libpq/libpq-int.h
src/interfaces/libpq/libpq-int.h
+1
-2
No files found.
src/interfaces/libpq/fe-connect.c
View file @
1e9e5def
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.16
5 2001/07/06 17:58:5
3 petere Exp $
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.16
6 2001/07/06 19:04:2
3 petere Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -1409,7 +1409,6 @@ keep_going: /* We will come back to here until there
...
@@ -1409,7 +1409,6 @@ keep_going: /* We will come back to here until there
if
(
areq
==
AUTH_REQ_OK
)
if
(
areq
==
AUTH_REQ_OK
)
{
{
/* We are done with authentication exchange */
/* We are done with authentication exchange */
conn
->
startup_complete
=
TRUE
;
conn
->
status
=
CONNECTION_AUTH_OK
;
conn
->
status
=
CONNECTION_AUTH_OK
;
/*
/*
...
@@ -1910,7 +1909,6 @@ makeEmptyPGconn(void)
...
@@ -1910,7 +1909,6 @@ makeEmptyPGconn(void)
freePGconn
(
conn
);
freePGconn
(
conn
);
conn
=
NULL
;
conn
=
NULL
;
}
}
conn
->
startup_complete
=
FALSE
;
return
conn
;
return
conn
;
}
}
...
@@ -1976,7 +1974,7 @@ closePGconn(PGconn *conn)
...
@@ -1976,7 +1974,7 @@ closePGconn(PGconn *conn)
{
{
/* Note that the protocol doesn't allow us to send Terminate
/* Note that the protocol doesn't allow us to send Terminate
messages during the startup phase. */
messages during the startup phase. */
if
(
conn
->
sock
>=
0
&&
conn
->
sta
rtup_complete
)
if
(
conn
->
sock
>=
0
&&
conn
->
sta
tus
==
CONNECTION_OK
)
{
{
/*
/*
...
...
src/interfaces/libpq/libpq-int.h
View file @
1e9e5def
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
* Portions Copyright (c) 1994, Regents of the University of California
*
*
* $Id: libpq-int.h,v 1.3
4 2001/07/06 17:58:5
3 petere Exp $
* $Id: libpq-int.h,v 1.3
5 2001/07/06 19:04:2
3 petere Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -278,7 +278,6 @@ struct pg_conn
...
@@ -278,7 +278,6 @@ struct pg_conn
PQExpBufferData
workBuffer
;
/* expansible string */
PQExpBufferData
workBuffer
;
/* expansible string */
int
client_encoding
;
/* encoding id */
int
client_encoding
;
/* encoding id */
int
startup_complete
;
};
};
/* String descriptions of the ExecStatusTypes.
/* String descriptions of the ExecStatusTypes.
...
...
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