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
5bf6af6c
Commit
5bf6af6c
authored
Aug 18, 2002
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add includes for prototype using timeval.
parent
1c69f134
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
8 deletions
+11
-8
src/interfaces/libpq/fe-connect.c
src/interfaces/libpq/fe-connect.c
+6
-6
src/interfaces/libpq/libpq-int.h
src/interfaces/libpq/libpq-int.h
+5
-2
No files found.
src/interfaces/libpq/fe-connect.c
View file @
5bf6af6c
...
...
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.19
3 2002/08/18 00:06:01
momjian Exp $
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.19
4 2002/08/18 01:35:39
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -111,8 +111,8 @@ static const PQconninfoOption PQconninfoOptions[] = {
{
"password"
,
"PGPASSWORD"
,
DefaultPassword
,
NULL
,
"Database-Password"
,
"*"
,
20
},
{
"connect_timeout"
,
"PGCONNECT_TIMEOUT"
,
NULL
,
NULL
,
"Connect-timeout"
,
""
,
10
},
/* strlen( INT32_MAX) == 10 */
{
"connect_timeout"
,
"PGCONNECT_TIMEOUT"
,
NULL
,
NULL
,
"Connect-timeout"
,
""
,
10
},
/* strlen( INT32_MAX) == 10 */
{
"dbname"
,
"PGDATABASE"
,
NULL
,
NULL
,
"Database-Name"
,
""
,
20
},
...
...
@@ -306,8 +306,8 @@ PQconnectStart(const char *conninfo)
conn
->
pguser
=
tmp
?
strdup
(
tmp
)
:
NULL
;
tmp
=
conninfo_getval
(
connOptions
,
"password"
);
conn
->
pgpass
=
tmp
?
strdup
(
tmp
)
:
NULL
;
tmp
=
conninfo_getval
(
connOptions
,
"connect_timeout"
);
conn
->
connect_timeout
=
tmp
?
strdup
(
tmp
)
:
NULL
;
tmp
=
conninfo_getval
(
connOptions
,
"connect_timeout"
);
conn
->
connect_timeout
=
tmp
?
strdup
(
tmp
)
:
NULL
;
#ifdef USE_SSL
tmp
=
conninfo_getval
(
connOptions
,
"requiressl"
);
if
(
tmp
&&
tmp
[
0
]
==
'1'
)
...
...
@@ -1058,7 +1058,7 @@ connectDBComplete(PGconn *conn)
{
PostgresPollingStatusType
flag
=
PGRES_POLLING_WRITING
;
struct
timeval
remains
,
*
rp
=
NULL
,
finish_time
,
start_time
;
struct
timeval
remains
,
*
rp
=
NULL
,
finish_time
,
start_time
;
if
(
conn
==
NULL
||
conn
->
status
==
CONNECTION_BAD
)
return
0
;
...
...
src/interfaces/libpq/libpq-int.h
View file @
5bf6af6c
...
...
@@ -12,7 +12,7 @@
* Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* $Id: libpq-int.h,v 1.5
3 2002/08/17 12:33:18
momjian Exp $
* $Id: libpq-int.h,v 1.5
4 2002/08/18 01:35:40
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -20,6 +20,9 @@
#ifndef LIBPQ_INT_H
#define LIBPQ_INT_H
#include <sys/types.h>
#include <time.h>
#if defined(WIN32) && (!defined(ssize_t))
typedef
int
ssize_t
;
/* ssize_t doesn't exist in VC (atleast not VC6) */
#endif
...
...
@@ -334,7 +337,7 @@ extern int pqReadData(PGconn *conn);
extern
int
pqFlush
(
PGconn
*
conn
);
extern
int
pqSendSome
(
PGconn
*
conn
);
extern
int
pqWait
(
int
forRead
,
int
forWrite
,
PGconn
*
conn
);
extern
int
pqWaitTimed
(
int
forRead
,
int
forWrite
,
PGconn
*
conn
,
const
struct
timeval
*
timeout
);
extern
int
pqWaitTimed
(
int
forRead
,
int
forWrite
,
PGconn
*
conn
,
const
struct
timeval
*
timeout
);
extern
int
pqReadReady
(
PGconn
*
conn
);
extern
int
pqWriteReady
(
PGconn
*
conn
);
...
...
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