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
676404d5
Commit
676404d5
authored
Oct 11, 1999
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add pginterface into main tree, called pgeasy.
parent
6da92d94
Changes
18
Show whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
144 additions
and
56 deletions
+144
-56
contrib/README
contrib/README
+0
-8
contrib/findoidjoins/README
contrib/findoidjoins/README
+1
-1
contrib/pginterface/Makefile
contrib/pginterface/Makefile
+0
-32
src/configure.in
src/configure.in
+1
-0
src/interfaces/Makefile
src/interfaces/Makefile
+2
-1
src/interfaces/libpgtcl/Makefile.in
src/interfaces/libpgtcl/Makefile.in
+2
-2
src/interfaces/libpq/Makefile.in
src/interfaces/libpq/Makefile.in
+2
-2
src/interfaces/pgeasy/Makefile.in
src/interfaces/pgeasy/Makefile.in
+89
-0
src/interfaces/pgeasy/README
src/interfaces/pgeasy/README
+10
-0
src/interfaces/pgeasy/examples/Makefile
src/interfaces/pgeasy/examples/Makefile
+27
-0
src/interfaces/pgeasy/examples/pginsert.c
src/interfaces/pgeasy/examples/pginsert.c
+1
-1
src/interfaces/pgeasy/examples/pgnulltest.c
src/interfaces/pgeasy/examples/pgnulltest.c
+1
-1
src/interfaces/pgeasy/examples/pgwordcount.c
src/interfaces/pgeasy/examples/pgwordcount.c
+1
-1
src/interfaces/pgeasy/halt.c
src/interfaces/pgeasy/halt.c
+0
-0
src/interfaces/pgeasy/halt.h
src/interfaces/pgeasy/halt.h
+0
-0
src/interfaces/pgeasy/pgeasy.3
src/interfaces/pgeasy/pgeasy.3
+5
-5
src/interfaces/pgeasy/pgeasy.c
src/interfaces/pgeasy/pgeasy.c
+2
-2
src/interfaces/pgeasy/pgeasy.h
src/interfaces/pgeasy/pgeasy.h
+0
-0
No files found.
contrib/README
View file @
676404d5
...
@@ -50,14 +50,6 @@ mSQL-interface -
...
@@ -50,14 +50,6 @@ mSQL-interface -
noupdate -
noupdate -
trigger to prevent updates on single columns
trigger to prevent updates on single columns
plpgsql -
Postgres procedural language
by Jan Wieck <jwieck@debis.com>
pginterface -
A crude C/4GL
by Bruce Momjian <root@candle.pha.pa.us>
soundex -
soundex -
Prototype for soundex function
Prototype for soundex function
...
...
contrib/findoidjoins/README
View file @
676404d5
...
@@ -6,7 +6,7 @@ and the tables they join to. CAUTION: it is ver-r-r-y slow on a large
...
@@ -6,7 +6,7 @@ and the tables they join to. CAUTION: it is ver-r-r-y slow on a large
database, or even a not-so-large one. We don't really recommend running
database, or even a not-so-large one. We don't really recommend running
it on anything but an empty database.
it on anything but an empty database.
It requires pgsql/contrib/pginterface to be compiled first
.
Uses pgeasy library
.
Run on an empty database, it returns the system join relationships (shown
Run on an empty database, it returns the system join relationships (shown
below for 6.5). Note that unexpected matches may indicate bogus entries
below for 6.5). Note that unexpected matches may indicate bogus entries
...
...
contrib/pginterface/Makefile
deleted
100644 → 0
View file @
6da92d94
#
# Makefile
#
#
PGINTERFACE
=
pginterface.o halt.o
TARGET
=
pginsert pgwordcount pgnulltest
CFLAGS
=
-g
-Wall
-I
.
-I
../../src/interfaces/libpq
-I
/usr/local/pgsql/include
LDFLAGS
=
-L
/usr/local/pgsql/lib
-lpq
all
:
$(TARGET)
pginsert
:
$(PGINTERFACE) pginsert.c
gcc
-o
$@
$(CFLAGS)
$@
.c
$(PGINTERFACE)
$(LDFLAGS)
pgwordcount
:
$(PGINTERFACE) pgwordcount.c
gcc
-o
$@
$(CFLAGS)
$@
.c
$(PGINTERFACE)
$(LDFLAGS)
pgnulltest
:
$(PGINTERFACE) pgnulltest.c
gcc
-o
$@
$(CFLAGS)
$@
.c
$(PGINTERFACE)
$(LDFLAGS)
pginterface.o
:
pginterface.c
gcc
-c
$(CFLAGS)
pginterface.c
halt.o
:
halt.c
gcc
-c
$(CFLAGS)
halt.c
clean
:
rm
-f
*
.o
$(TARGET)
log core
install
:
install
-s
-o
bin
-g
bin
$(TARGET)
/usr/local/pgsql/bin
src/configure.in
View file @
676404d5
...
@@ -1220,6 +1220,7 @@ AC_OUTPUT(
...
@@ -1220,6 +1220,7 @@ AC_OUTPUT(
interfaces/libpq/Makefile
interfaces/libpq/Makefile
interfaces/ecpg/lib/Makefile
interfaces/ecpg/lib/Makefile
interfaces/libpq++/Makefile
interfaces/libpq++/Makefile
interfaces/libpgeasy/Makefile
interfaces/libpgtcl/Makefile
interfaces/libpgtcl/Makefile
interfaces/odbc/GNUmakefile
interfaces/odbc/GNUmakefile
interfaces/odbc/Makefile.global
interfaces/odbc/Makefile.global
...
...
src/interfaces/Makefile
View file @
676404d5
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
#
#
#
#
# IDENTIFICATION
# IDENTIFICATION
# $Header: /cvsroot/pgsql/src/interfaces/Makefile,v 1.2
7 1999/10/08 04:28:57
momjian Exp $
# $Header: /cvsroot/pgsql/src/interfaces/Makefile,v 1.2
8 1999/10/11 17:46:58
momjian Exp $
#
#
#-------------------------------------------------------------------------
#-------------------------------------------------------------------------
...
@@ -44,6 +44,7 @@ endif
...
@@ -44,6 +44,7 @@ endif
ifeq
($(USE_ODBC), true)
ifeq
($(USE_ODBC), true)
$(MAKE)
-C
odbc
$@
$(MAKE)
-C
odbc
$@
endif
endif
$(MAKE)
-C
pgeasy
$@
perl5/Makefile
:
perl5/Makefile.PL
perl5/Makefile
:
perl5/Makefile.PL
cd
perl5
&&
$(PERL)
Makefile.PL
cd
perl5
&&
$(PERL)
Makefile.PL
...
...
src/interfaces/libpgtcl/Makefile.in
View file @
676404d5
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
# Copyright (c) 1994, Regents of the University of California
# Copyright (c) 1994, Regents of the University of California
#
#
# IDENTIFICATION
# IDENTIFICATION
# $Header: /cvsroot/pgsql/src/interfaces/libpgtcl/Attic/Makefile.in,v 1.3
5 1999/06/30 23:57:24 tgl
Exp $
# $Header: /cvsroot/pgsql/src/interfaces/libpgtcl/Attic/Makefile.in,v 1.3
6 1999/10/11 17:46:59 momjian
Exp $
#
#
#-------------------------------------------------------------------------
#-------------------------------------------------------------------------
...
@@ -52,7 +52,7 @@ beforeinstall-headers:
...
@@ -52,7 +52,7 @@ beforeinstall-headers:
.PHONY
:
clean
.PHONY
:
clean
clean
:
clean-shlib
clean
:
clean-shlib
rm
-f
$(OBJS)
lib
$(NAME)
.a
rm
-f
lib
$(NAME)
.a
$(OBJS)
depend dep
:
depend dep
:
$(CC)
-MM
$(CFLAGS)
*
.c
>
depend
$(CC)
-MM
$(CFLAGS)
*
.c
>
depend
...
...
src/interfaces/libpq/Makefile.in
View file @
676404d5
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
# Copyright (c) 1994, Regents of the University of California
# Copyright (c) 1994, Regents of the University of California
#
#
# IDENTIFICATION
# IDENTIFICATION
# $Header: /cvsroot/pgsql/src/interfaces/libpq/Attic/Makefile.in,v 1.4
7 1999/08/31 01:37:36 tgl
Exp $
# $Header: /cvsroot/pgsql/src/interfaces/libpq/Attic/Makefile.in,v 1.4
8 1999/10/11 17:47:01 momjian
Exp $
#
#
#-------------------------------------------------------------------------
#-------------------------------------------------------------------------
...
@@ -86,7 +86,7 @@ install-headers: libpq-fe.h libpq-int.h
...
@@ -86,7 +86,7 @@ install-headers: libpq-fe.h libpq-int.h
.PHONY
:
clean
.PHONY
:
clean
clean
:
clean-shlib
clean
:
clean-shlib
rm
-f
lib
pq
.a
$(OBJS)
rm
-f
lib
$(NAME)
.a
$(OBJS)
rm
-f
dllist.c common.c wchar.c conv.c big5.c
rm
-f
dllist.c common.c wchar.c conv.c big5.c
ifeq
($(PORTNAME), win)
ifeq
($(PORTNAME), win)
rm
-f
pq.def
rm
-f
pq.def
...
...
src/interfaces/pgeasy/Makefile.in
0 → 100644
View file @
676404d5
#-------------------------------------------------------------------------
#
# Makefile
# Makefile for pgeasy library
#
# IDENTIFICATION
# $Header: /cvsroot/pgsql/src/interfaces/pgeasy/Attic/Makefile.in,v 1.1 1999/10/11 17:47:01 momjian Exp $
#
#-------------------------------------------------------------------------
NAME
=
pgeasy
SO_MAJOR_VERSION
=
2
SO_MINOR_VERSION
=
0
SRCDIR
=
@top_srcdir@
include
$(SRCDIR)/Makefile.global
ifdef
KRBVERS
CFLAGS
+=
$(KRBFLAGS)
endif
OBJS
=
pgeasy.o halt.o
SHLIB_LINK
+=
-L
../libpq
-lpq
SHLIB_LINK
+=
-L
../libpq
-lpq
# If crypt is a separate library, rather than part of libc, it may need
# to be referenced separately to keep (broken) linkers happy. (This is
# braindead; users of libpq should not need to know what it depends on.)
SHLIB_LINK
+=
$(
findstring
-lcrypt
,
$(LIBS)
)
# Shared library stuff, also default 'all' target
include
$(SRCDIR)/Makefile.shlib
.PHONY
:
install install-headers
install
:
install-headers install-lib $(install-shlib-dep)
install-headers
:
pgeasy.h
@
if
[
!
-d
$(HEADERDIR)
]
;
then
mkdir
$(HEADERDIR)
;
fi
$(INSTALL)
$(INSTLOPTS)
pgeasy.h
$(HEADERDIR)
/pgeasy.h
.PHONY
:
clean
clean
:
clean-shlib
rm
-f
lib
$(NAME)
.a
$(OBJS)
depend dep
:
$(CC)
-MM
$(CFLAGS)
*
.c
>
depend
ifeq
(depend,$(wildcard depend))
include
depend
endif
PGEASY
=
pgeasy.o halt.o
TARGET
=
libpgeasy.a pginsert pgwordcount pgnulltest
CFLAGS
=
-g
-Wall
-I
.
-I
../../src/interfaces/libpq
-I
/usr/local/pgsql/include
LDFLAGS
=
-L
/usr/local/pgsql/lib
-lpq
all
:
$(TARGET)
libpgeasy.a
:
pgeasy.o halt.o
ar r libpgeasy.a pgeasy.o halt.o
pgeasy.o
:
pgeasy.c
gcc
-c
$(CFLAGS)
pgeasy.c
halt.o
:
halt.c
gcc
-c
$(CFLAGS)
halt.c
pginsert
:
$(PGEASY) pginsert.c
gcc
-o
$@
$(CFLAGS)
$@
.c
$(PGEASY)
$(LDFLAGS)
pgwordcount
:
$(PGEASY) pgwordcount.c
gcc
-o
$@
$(CFLAGS)
$@
.c
$(PGEASY)
$(LDFLAGS)
pgnulltest
:
$(PGEASY) pgnulltest.c
gcc
-o
$@
$(CFLAGS)
$@
.c
$(PGEASY)
$(LDFLAGS)
clean
:
rm
-f
*
.o
$(TARGET)
log core
install
:
install
-s
-o
bin
-g
bin
$(TARGET)
/usr/local/pgsql/bin
contrib/pginterface
/README
→
src/interfaces/pgeasy
/README
View file @
676404d5
Pginterface 2.0
Pgeasy 2.0
(Formerly contrib/pginterface)
Attached is a copy of the Postgres support routines I wrote to allow me
Attached is a copy of the Postgres support routines I wrote to allow me
to more cleanly interface to the libpg library, more like a 4gl SQL
to more cleanly interface to the libpg library, more like a 4gl SQL
interface.
interface.
You can create a library of pginterface.c and halt.c, and just include
pginterface.h in your source code.
I am willing to maintain this if people find problems or want additional
functionality.
Bruce Momjian (root@candle.pha.pa.us)
Bruce Momjian (root@candle.pha.pa.us)
src/interfaces/pgeasy/examples/Makefile
0 → 100644
View file @
676404d5
#-------------------------------------------------------------------------
#
# Makefile
# Makefile for pgeasy examples
#
# IDENTIFICATION
# $Header: /cvsroot/pgsql/src/interfaces/pgeasy/examples/Attic/Makefile,v 1.1 1999/10/11 17:47:02 momjian Exp $
#
#-------------------------------------------------------------------------
TARGET
=
pginsert pgwordcount pgnulltest
LDFLAGS
=
-lpgeasy
all
:
$(TARGET)
pginsert
:
gcc
-o
$@
$(CFLAGS)
$@
.c
$(PGEASY)
$(LDFLAGS)
pgwordcount
:
gcc
-o
$@
$(CFLAGS)
$@
.c
$(PGEASY)
$(LDFLAGS)
pgnulltest
:
gcc
-o
$@
$(CFLAGS)
$@
.c
$(PGEASY)
$(LDFLAGS)
clean
:
rm
-f
*
.o
$(TARGET)
log core
contrib/pginterface
/pginsert.c
→
src/interfaces/pgeasy/examples
/pginsert.c
View file @
676404d5
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
#include <time.h>
#include <time.h>
#include <libpq-fe.h>
#include <libpq-fe.h>
#include "halt.h"
#include "halt.h"
#include "pg
interface
.h"
#include "pg
easy
.h"
int
int
main
(
int
argc
,
char
**
argv
)
main
(
int
argc
,
char
**
argv
)
...
...
contrib/pginterface
/pgnulltest.c
→
src/interfaces/pgeasy/examples
/pgnulltest.c
View file @
676404d5
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
#include <time.h>
#include <time.h>
#include <halt.h>
#include <halt.h>
#include <libpq-fe.h>
#include <libpq-fe.h>
#include <pg
interface
.h>
#include <pg
easy
.h>
int
int
main
(
int
argc
,
char
**
argv
)
main
(
int
argc
,
char
**
argv
)
...
...
contrib/pginterface
/pgwordcount.c
→
src/interfaces/pgeasy/examples
/pgwordcount.c
View file @
676404d5
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
#include <stdio.h>
#include <stdio.h>
#include "halt.h"
#include "halt.h"
#include <libpq-fe.h>
#include <libpq-fe.h>
#include "pg
interface
.h"
#include "pg
easy
.h"
int
int
main
(
int
argc
,
char
**
argv
)
main
(
int
argc
,
char
**
argv
)
...
...
contrib/pginterface
/halt.c
→
src/interfaces/pgeasy
/halt.c
View file @
676404d5
File moved
contrib/pginterface
/halt.h
→
src/interfaces/pgeasy
/halt.h
View file @
676404d5
File moved
contrib/pginterface/pginterface
.3
→
src/interfaces/pgeasy/pgeasy
.3
View file @
676404d5
.\" This is -*-nroff-*-
.\" This is -*-nroff-*-
.\" XXX standard disclaimer belongs here....
.\" XXX standard disclaimer belongs here....
.\" $Header: /cvsroot/pgsql/
contrib/pginterface/Attic/pginterface.3,v 1.1 1998/09/11 05:14:08
momjian Exp $
.\" $Header: /cvsroot/pgsql/
src/interfaces/pgeasy/Attic/pgeasy.3,v 1.1 1999/10/11 17:47:01
momjian Exp $
.TH PG
INTERFACE
INTRO 08/08/98 PostgreSQL PostgreSQL
.TH PG
EASY
INTRO 08/08/98 PostgreSQL PostgreSQL
.SH DESCRIPTION
.SH DESCRIPTION
Pg
interface
allows you to cleanly interface to the libpq library,
Pg
easy
allows you to cleanly interface to the libpq library,
more like a 4gl SQL interface.
more like a 4gl SQL interface.
.PP
.PP
It consists of set of simplified C functions that encapsulate the
It consists of set of simplified C functions that encapsulate the
...
@@ -46,7 +46,7 @@ queries,
...
@@ -46,7 +46,7 @@ queries,
allows you to pass pointers as parameters, and on return the variables
allows you to pass pointers as parameters, and on return the variables
are filled with data from the binary cursor you opened. These binary
are filled with data from the binary cursor you opened. These binary
cursors can not be used if you are running the
cursors can not be used if you are running the
.BR pg
interface
.BR pg
easy
client on a system with a different architecture than the database
client on a system with a different architecture than the database
server. If you pass a NULL pointer parameter, the column is skipped.
server. If you pass a NULL pointer parameter, the column is skipped.
.BR fetchwithnulls
.BR fetchwithnulls
...
@@ -67,5 +67,5 @@ and
...
@@ -67,5 +67,5 @@ and
allow you to handle multiple result sets at the same time.
allow you to handle multiple result sets at the same time.
.PP
.PP
There are a variety of demonstration programs in the
There are a variety of demonstration programs in the
.BR pg
interface
.BR pg
easy
source directory.
source directory.
contrib/pginterface/pginterface
.c
→
src/interfaces/pgeasy/pgeasy
.c
View file @
676404d5
/*
/*
* pg
interface
.c
* pg
easy
.c
*
*
*/
*/
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
#include <libpq-fe.h>
#include <libpq-fe.h>
#include "halt.h"
#include "halt.h"
#include "pg
interface
.h"
#include "pg
easy
.h"
#define NUL '\0'
#define NUL '\0'
...
...
contrib/pginterface/pginterface
.h
→
src/interfaces/pgeasy/pgeasy
.h
View file @
676404d5
File moved
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