Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
postgres-lambda-diff
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jakob Huber
postgres-lambda-diff
Commits
4032a515
Commit
4032a515
authored
24 years ago
by
Peter Eisentraut
Browse files
Options
Downloads
Patches
Plain Diff
PGPORT envar was erroneously ignored by the backend
parent
beb7f7f7
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/backend/libpq/pqcomm.c
+1
-14
1 addition, 14 deletions
src/backend/libpq/pqcomm.c
src/backend/postmaster/postmaster.c
+5
-5
5 additions, 5 deletions
src/backend/postmaster/postmaster.c
src/include/libpq/libpq.h
+1
-2
1 addition, 2 deletions
src/include/libpq/libpq.h
with
7 additions
and
21 deletions
src/backend/libpq/pqcomm.c
+
1
−
14
View file @
4032a515
...
...
@@ -29,7 +29,7 @@
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc
* Portions Copyright (c) 1994, Regents of the University of California
*
* $Id: pqcomm.c,v 1.9
5
2000/06/0
4 01:44:30
petere Exp $
* $Id: pqcomm.c,v 1.9
6
2000/06/0
6 16:04:29
petere Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -118,19 +118,6 @@ pq_init(void)
debug_port
=
stderr
;
}
/* --------------------------------
* pq_getport - return the PGPORT setting
* --------------------------------
*/
int
pq_getport
(
void
)
{
char
*
envport
=
getenv
(
"PGPORT"
);
if
(
envport
)
return
atoi
(
envport
);
return
DEF_PGPORT
;
}
/* --------------------------------
* pq_close - shutdown libpq at backend exit
...
...
This diff is collapsed.
Click to expand it.
src/backend/postmaster/postmaster.c
+
5
−
5
View file @
4032a515
...
...
@@ -11,7 +11,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.14
6
2000/06/0
4 01:44:31
petere Exp $
* $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.14
7
2000/06/0
6 16:04:29
petere Exp $
*
* NOTES
*
...
...
@@ -129,7 +129,7 @@ static Dllist *BackendList;
/* list of ports associated with still open, but incomplete connections */
static
Dllist
*
PortList
;
int
PostPortName
=
DEF_PGPORT
;
int
PostPortName
;
/*
* This is a boolean indicating that there is at least one backend that
...
...
@@ -381,6 +381,9 @@ PostmasterMain(int argc, char *argv[])
MyProcPid
=
getpid
();
DataDir
=
getenv
(
"PGDATA"
);
/* default value */
if
(
getenv
(
"PGPORT"
))
PostPortName
=
atoi
(
getenv
(
"PGPORT"
));
/*
* First we must scan for a -D argument to get the data dir. Then
* read the config file. Finally, scan all the other arguments.
...
...
@@ -543,9 +546,6 @@ PostmasterMain(int argc, char *argv[])
}
}
if
(
PostPortName
==
0
)
PostPortName
=
pq_getport
();
/*
* Check for invalid combinations of switches
*/
...
...
This diff is collapsed.
Click to expand it.
src/include/libpq/libpq.h
+
1
−
2
View file @
4032a515
...
...
@@ -7,7 +7,7 @@
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc
* Portions Copyright (c) 1994, Regents of the University of California
*
* $Id: libpq.h,v 1.3
7
2000/06/0
4 01:4
4:3
7
petere Exp $
* $Id: libpq.h,v 1.3
8
2000/06/0
6 16:0
4:3
2
petere Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -240,7 +240,6 @@ extern int StreamServerPort(int family, unsigned short portName, int *fdP);
extern
int
StreamConnection
(
int
server_fd
,
Port
*
port
);
extern
void
StreamClose
(
int
sock
);
extern
void
pq_init
(
void
);
extern
int
pq_getport
(
void
);
extern
void
pq_close
(
void
);
extern
int
pq_getbytes
(
char
*
s
,
size_t
len
);
extern
int
pq_getstring
(
StringInfo
s
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment