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
a472a29b
Commit
a472a29b
authored
Nov 06, 1996
by
Marc G. Fournier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
I'm getting there, slowly :)
parent
e2329091
Changes
12
Show whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
104 additions
and
102 deletions
+104
-102
src/backend/libpq/Makefile
src/backend/libpq/Makefile
+3
-2
src/backend/libpq/auth.c
src/backend/libpq/auth.c
+9
-9
src/backend/libpq/be-dumpdata.c
src/backend/libpq/be-dumpdata.c
+15
-18
src/backend/libpq/be-fsstubs.c
src/backend/libpq/be-fsstubs.c
+18
-16
src/backend/libpq/be-pqexec.c
src/backend/libpq/be-pqexec.c
+16
-13
src/backend/libpq/hba.c
src/backend/libpq/hba.c
+7
-7
src/backend/libpq/portal.c
src/backend/libpq/portal.c
+6
-6
src/backend/libpq/portalbuf.c
src/backend/libpq/portalbuf.c
+6
-5
src/backend/libpq/pqcomm.c
src/backend/libpq/pqcomm.c
+11
-10
src/backend/libpq/pqpacket.c
src/backend/libpq/pqpacket.c
+5
-7
src/backend/libpq/pqsignal.c
src/backend/libpq/pqsignal.c
+3
-3
src/backend/libpq/util.c
src/backend/libpq/util.c
+5
-6
No files found.
src/backend/libpq/Makefile
View file @
a472a29b
...
@@ -4,14 +4,15 @@
...
@@ -4,14 +4,15 @@
# Makefile for libpq subsystem (backend half of libpq interface)
# Makefile for libpq subsystem (backend half of libpq interface)
#
#
# IDENTIFICATION
# IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/libpq/Makefile,v 1.
2 1996/10/31 10:37:47
scrappy Exp $
# $Header: /cvsroot/pgsql/src/backend/libpq/Makefile,v 1.
3 1996/11/06 08:48:21
scrappy Exp $
#
#
#-------------------------------------------------------------------------
#-------------------------------------------------------------------------
SRCDIR
=
../..
SRCDIR
=
../..
include
../../Makefile.global
include
../../Makefile.global
INCLUDE_OPT
=
-I
../port/
$(PORTNAME)
\
INCLUDE_OPT
=
-I
..
\
-I
../port/
$(PORTNAME)
\
-I
../../include
-I
../../include
CFLAGS
+=
$(INCLUDE_OPT)
CFLAGS
+=
$(INCLUDE_OPT)
...
...
src/backend/libpq/auth.c
View file @
a472a29b
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/libpq/auth.c,v 1.
6 1996/11/06 06:48:06
scrappy Exp $
* $Header: /cvsroot/pgsql/src/backend/libpq/auth.c,v 1.
7 1996/11/06 08:48:23
scrappy Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -62,13 +62,13 @@
...
@@ -62,13 +62,13 @@
#include <netinet/in.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <arpa/inet.h>
#include
"postgres.h"
#include
<postgres.h>
#include
"miscadmin.h"
#include
<miscadmin.h>
#include
"libpq/auth.h"
#include
<libpq/auth.h>
#include
"libpq/libpq.h"
#include
<libpq/libpq.h>
#include
"libpq/libpq-be.h"
#include
<libpq/libpq-be.h>
#include
"libpq/hba.h"
#include
<libpq/hba.h>
/*----------------------------------------------------------------
/*----------------------------------------------------------------
* common definitions for generic fe/be routines
* common definitions for generic fe/be routines
...
@@ -129,7 +129,7 @@ static n_authsvcs = sizeof(authsvcs) / sizeof(struct authsvc);
...
@@ -129,7 +129,7 @@ static n_authsvcs = sizeof(authsvcs) / sizeof(struct authsvc);
*----------------------------------------------------------------
*----------------------------------------------------------------
*/
*/
#include
"krb.h"
#include
<krb.h>
#ifdef FRONTEND
#ifdef FRONTEND
/* moves to src/libpq/fe-auth.c */
/* moves to src/libpq/fe-auth.c */
...
@@ -228,7 +228,7 @@ return(STATUS_ERROR);
...
@@ -228,7 +228,7 @@ return(STATUS_ERROR);
*----------------------------------------------------------------
*----------------------------------------------------------------
*/
*/
#include
"krb5/krb5.h"
#include
<krb5/krb5.h>
/*
/*
* pg_an_to_ln -- return the local name corresponding to an authentication
* pg_an_to_ln -- return the local name corresponding to an authentication
...
...
src/backend/libpq/be-dumpdata.c
View file @
a472a29b
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/libpq/Attic/be-dumpdata.c,v 1.
2 1996/11/06 06:48:10
scrappy Exp $
* $Header: /cvsroot/pgsql/src/backend/libpq/Attic/be-dumpdata.c,v 1.
3 1996/11/06 08:48:24
scrappy Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -30,25 +30,22 @@
...
@@ -30,25 +30,22 @@
*
*
*/
*/
#include <string.h>
#include <string.h>
#include "postgres.h"
#include <postgres.h>
#include "lib/dllist.h"
#include "libpq/libpq-be.h"
#include <lib/dllist.h>
#include <libpq/libpq-be.h>
#include "access/heapam.h"
#include <access/heapam.h>
#include "access/htup.h"
#include <access/htup.h>
#include "storage/buf.h"
#include <storage/buf.h>
#include "utils/memutils.h"
#include <utils/memutils.h>
#include "utils/palloc.h"
#include <fmgr.h>
#include "fmgr.h"
#include <utils/mcxt.h>
#include "utils/mcxt.h"
#include <utils/exc.h>
#include "utils/elog.h"
#include <utils/syscache.h>
#include "utils/exc.h"
#include <catalog/pg_type.h>
#include <catalog/catalog.h>
#include "utils/syscache.h"
#include <access/printtup.h>
#include "catalog/pg_type.h"
#include "catalog/catalog.h"
#include "access/printtup.h"
/* ----------------
/* ----------------
* backend portal stack for recursive PQexec calls
* backend portal stack for recursive PQexec calls
...
...
src/backend/libpq/be-fsstubs.c
View file @
a472a29b
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/libpq/be-fsstubs.c,v 1.
3 1996/10/31 10:37:49
scrappy Exp $
* $Header: /cvsroot/pgsql/src/backend/libpq/be-fsstubs.c,v 1.
4 1996/11/06 08:48:25
scrappy Exp $
*
*
* NOTES
* NOTES
* This should be moved to a more appropriate place. It is here
* This should be moved to a more appropriate place. It is here
...
@@ -21,21 +21,23 @@
...
@@ -21,21 +21,23 @@
* closed.
* closed.
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
#include "postgres.h"
#include "lib/dllist.h"
#include <fcntl.h>
#include "libpq/libpq.h"
#include <sys/types.h>
#include "libpq/libpq-fs.h"
#include <unistd.h>
#include "nodes/nodes.h"
#include "utils/memutils.h"
#include <postgres.h>
#include "lib/fstack.h"
#include "utils/mcxt.h"
#include <lib/dllist.h>
#include "utils/palloc.h"
#include <libpq/libpq.h>
#include <libpq/libpq-fs.h>
#include "storage/fd.h"
/* for O_ */
#include <nodes/nodes.h>
#include "storage/large_object.h"
#include <utils/memutils.h>
#include <lib/fstack.h>
#include "utils/elog.h"
#include <utils/mcxt.h>
#include "libpq/be-fsstubs.h"
#include <storage/fd.h>
/* for O_ */
#include <storage/large_object.h>
#include <libpq/be-fsstubs.h>
/*#define FSDB 1*/
/*#define FSDB 1*/
#define MAX_LOBJ_FDS 256
#define MAX_LOBJ_FDS 256
...
...
src/backend/libpq/be-pqexec.c
View file @
a472a29b
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/libpq/Attic/be-pqexec.c,v 1.
1.1.1 1996/07/09 06:21:30
scrappy Exp $
* $Header: /cvsroot/pgsql/src/backend/libpq/Attic/be-pqexec.c,v 1.
2 1996/11/06 08:48:26
scrappy Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -20,19 +20,22 @@
...
@@ -20,19 +20,22 @@
* NOTES
* NOTES
* These routines are compiled into the postgres backend.
* These routines are compiled into the postgres backend.
*/
*/
#include "postgres.h"
#include <postgres.h>
#include "nodes/pg_list.h"
#include <nodes/pg_list.h>
#include "tcop/dest.h"
#include <tcop/dest.h>
#include "tcop/fastpath.h"
#include <tcop/fastpath.h>
#include "tcop/tcopprot.h"
#include <tcop/tcopprot.h>
#include "lib/dllist.h"
#include <lib/dllist.h>
#include "libpq/libpq-be.h"
#include <libpq/libpq-be.h>
#include "fmgr.h"
#include <fmgr.h>
#include "utils/exc.h"
#include <utils/exc.h>
#include "utils/builtins.h"
#include <utils/builtins.h>
#include "utils/elog.h"
#ifndef HAVE_MEMMOVE
#include "utils/palloc.h"
# include <regex/utils.h>
#else
# include <string.h>
#endif
/* ----------------------------------------------------------------
/* ----------------------------------------------------------------
* PQ interface routines
* PQ interface routines
...
...
src/backend/libpq/hba.c
View file @
a472a29b
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/libpq/hba.c,v 1.
9 1996/11/06 06:48:12
scrappy Exp $
* $Header: /cvsroot/pgsql/src/backend/libpq/hba.c,v 1.
10 1996/11/06 08:48:27
scrappy Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -21,14 +21,14 @@
...
@@ -21,14 +21,14 @@
#include <arpa/inet.h>
#include <arpa/inet.h>
#include <unistd.h>
#include <unistd.h>
#if defined(sparc_solaris)
#if defined(sparc_solaris)
#include
"inet_aton.h"
/* after I copied it into port/sparc_solaris */
#include
<inet_aton.h>
/* after I copied it into port/sparc_solaris */
#endif
#endif
#include
"postgres.h"
#include
<postgres.h>
#include
"miscadmin.h"
#include
<miscadmin.h>
#include
"libpq/libpq.h"
#include
<libpq/libpq.h>
#include
"libpq/pqcomm.h"
#include
<libpq/pqcomm.h>
#include
"libpq/hba.h"
#include
<libpq/hba.h>
#define CONF_FILE "pg_hba.conf"
#define CONF_FILE "pg_hba.conf"
...
...
src/backend/libpq/portal.c
View file @
a472a29b
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/libpq/Attic/portal.c,v 1.
3 1996/10/31 10:37:50
scrappy Exp $
* $Header: /cvsroot/pgsql/src/backend/libpq/Attic/portal.c,v 1.
4 1996/11/06 08:48:28
scrappy Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -58,11 +58,11 @@
...
@@ -58,11 +58,11 @@
#include <stdio.h>
/* for sprintf() */
#include <stdio.h>
/* for sprintf() */
#include <string.h>
#include <string.h>
#include
"postgres.h"
#include
<postgres.h>
#include "lib/dllist.h"
#include
"libpq/libpq.h"
/* where the declarations go */
#include
<lib/dllist.h>
#include
"utils/exc.h"
#include
<libpq/libpq.h>
/* where the declarations go */
#include
"utils/palloc.h"
#include
<utils/exc.h>
/* ----------------------------------------------------------------
/* ----------------------------------------------------------------
...
...
src/backend/libpq/portalbuf.c
View file @
a472a29b
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/libpq/Attic/portalbuf.c,v 1.
2 1996/10/31 10:37:51
scrappy Exp $
* $Header: /cvsroot/pgsql/src/backend/libpq/Attic/portalbuf.c,v 1.
3 1996/11/06 08:48:29
scrappy Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -47,12 +47,13 @@
...
@@ -47,12 +47,13 @@
* see utils/mmgr/portalmem.c for why. -cim 2/22/91
* see utils/mmgr/portalmem.c for why. -cim 2/22/91
*
*
*/
*/
#include <string.h>
#include <sys/types.h>
#include <sys/types.h>
#include "postgres.h"
#include "libpq/libpq.h"
/* where the declarations go */
#include <postgres.h>
#include "utils/exc.h"
#include "utils/palloc.h"
#include <libpq/libpq.h>
/* where the declarations go */
#include <utils/exc.h>
PortalEntry
**
portals
=
(
PortalEntry
**
)
NULL
;
PortalEntry
**
portals
=
(
PortalEntry
**
)
NULL
;
size_t
portals_array_size
=
0
;
size_t
portals_array_size
=
0
;
...
...
src/backend/libpq/pqcomm.c
View file @
a472a29b
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/libpq/pqcomm.c,v 1.
4 1996/10/31 10:37:52
scrappy Exp $
* $Header: /cvsroot/pgsql/src/backend/libpq/pqcomm.c,v 1.
5 1996/11/06 08:48:30
scrappy Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -34,23 +34,22 @@
...
@@ -34,23 +34,22 @@
* the postgres backend.
* the postgres backend.
*
*
*/
*/
#include "postgres.h"
#include "libpq/pqsignal.h"
/* substitute for <signal.h> */
#include <stdio.h>
#include <stdio.h>
#include <string.h>
#include <string.h>
#include <errno.h>
#include <fcntl.h>
#include <signal.h>
#ifndef WIN32
#ifndef WIN32
#include <unistd.h>
/* for ttyname() */
#include <unistd.h>
/* for ttyname() */
#include <sys/types.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/socket.h>
#include <netdb.h>
#include <netdb.h>
#include <netinet/in.h>
#include <netinet/in.h>
#include <sys/socket.h>
#include <arpa/inet.h>
#else
#else
#include <winsock.h>
#include <winsock.h>
#endif
/* WIN32 */
#endif
/* WIN32 */
#include <errno.h>
#include <fcntl.h>
#if defined(linux)
#if defined(linux)
#ifndef SOMAXCONN
#ifndef SOMAXCONN
...
@@ -58,9 +57,11 @@
...
@@ -58,9 +57,11 @@
#endif
/* SOMAXCONN */
#endif
/* SOMAXCONN */
#endif
/* linux */
#endif
/* linux */
#include "libpq/auth.h"
#include <postgres.h>
#include "libpq/libpq.h"
/* where the declarations go */
#include "libpq/pqcomm.h"
#include <libpq/pqsignal.h>
/* substitute for <signal.h> */
#include <libpq/auth.h>
#include <libpq/libpq.h>
/* where the declarations go */
/* ----------------
/* ----------------
* declarations
* declarations
...
...
src/backend/libpq/pqpacket.c
View file @
a472a29b
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/libpq/Attic/pqpacket.c,v 1.
1.1.1 1996/07/09 06:21
:31 scrappy Exp $
* $Header: /cvsroot/pgsql/src/backend/libpq/Attic/pqpacket.c,v 1.
2 1996/11/06 08:48
:31 scrappy Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -48,12 +48,10 @@
...
@@ -48,12 +48,10 @@
#include <fcntl.h>
#include <fcntl.h>
#include <errno.h>
#include <errno.h>
#include "postgres.h"
#include <postgres.h>
#include "miscadmin.h"
#include <miscadmin.h>
#include "utils/elog.h"
#include <storage/ipc.h>
#include "storage/ipc.h"
#include <libpq/libpq.h>
#include "libpq/pqcomm.h"
/* where the declarations go */
#include "libpq/libpq.h"
/*
/*
* PacketReceive -- receive a packet on a port.
* PacketReceive -- receive a packet on a port.
...
...
src/backend/libpq/pqsignal.c
View file @
a472a29b
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/libpq/pqsignal.c,v 1.
2 1996/11/03 06:52:14
scrappy Exp $
* $Header: /cvsroot/pgsql/src/backend/libpq/pqsignal.c,v 1.
3 1996/11/06 08:48:32
scrappy Exp $
*
*
* NOTES
* NOTES
* This shouldn't be in libpq, but the monitor and some other
* This shouldn't be in libpq, but the monitor and some other
...
@@ -16,9 +16,9 @@
...
@@ -16,9 +16,9 @@
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
#include
"postgres.h"
#include
<postgres.h>
#include
"libpq/pqsignal.h"
#include
<libpq/pqsignal.h>
pqsigfunc
pqsigfunc
pqsignal
(
int
signo
,
pqsigfunc
func
)
pqsignal
(
int
signo
,
pqsigfunc
func
)
...
...
src/backend/libpq/util.c
View file @
a472a29b
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/libpq/Attic/util.c,v 1.
2 1996/10/31 10:37:5
3 scrappy Exp $
* $Header: /cvsroot/pgsql/src/backend/libpq/Attic/util.c,v 1.
3 1996/11/06 08:48:3
3 scrappy Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -22,11 +22,10 @@
...
@@ -22,11 +22,10 @@
#include <stdio.h>
/* for sprintf() */
#include <stdio.h>
/* for sprintf() */
#include <string.h>
#include <string.h>
#include "postgres.h"
#include <postgres.h>
#include "lib/dllist.h"
#include <lib/dllist.h>
#include "libpq/libpq.h"
/* where the declarations go */
#include <libpq/libpq.h>
/* where the declarations go */
#include "utils/exc.h"
#include <utils/exc.h>
#include "utils/palloc.h"
/* ----------------
/* ----------------
...
...
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