Skip to content

Commit e8a3240

Browse files
author
Tomoaki Nishiyama
committed
Drop PQprint() and related routines
1 parent 6c63cf2 commit e8a3240

File tree

11 files changed

+20
-64
lines changed

11 files changed

+20
-64
lines changed

RPostgreSQL/ChangeLog

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
2025-03-28 Tomoaki NISHIYAMA <tomoaki@sci.u-toyama.ac.jp>
2+
* Makevars.win rely on pkgconfig to find libpq on windows envirionment.
3+
* Drop PQprint and related routines from the attached libpq library.
4+
15
2024-09-30 Tomoaki NISHIYAMA <tomoaki@sci.u-toyama.ac.jp>
26
* Simplify tests
37

RPostgreSQL/DESCRIPTION

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: RPostgreSQL
2-
Version: 0.7-7
3-
Date: 2024-09-30
2+
Version: 0.7-8
3+
Date: 2025-03-28
44
Title: R Interface to the 'PostgreSQL' Database System
55
Maintainer: Tomoaki Nishiyama <tomoaki@sci.u-toyama.ac.jp>
66
Description: Database interface and 'PostgreSQL' driver for 'R'.
@@ -14,9 +14,12 @@ Description: Database interface and 'PostgreSQL' driver for 'R'.
1414
LazyLoad: true
1515
Depends: R (>= 3.4.0), methods, DBI (>= 0.3)
1616
License: GPL-3 | file LICENSE
17-
Copyright: Authors listed above, PostgreSQL Global Development Group, and The Regents of the University of California
17+
Copyright: Authors listed above, PostgreSQL Global Development Group,
18+
and The Regents of the University of California
1819
Collate: S4R.R zzz.R PostgreSQLSupport.R dbObjectId.R PostgreSQL.R
19-
URL: https://github.com/tomoakin/RPostgreSQL, https://cran.r-project.org/package=DBI, https://www.postgresql.org
20+
URL: https://github.com/tomoakin/RPostgreSQL,
21+
https://cran.r-project.org/package=DBI,
22+
https://www.postgresql.org
2023
Authors@R: c(person(given = "Joe",
2124
family = "Conway",
2225
role = "aut"),
@@ -34,3 +37,10 @@ Authors@R: c(person(given = "Joe",
3437
person(given = "Neil",
3538
family = "Tiffin",
3639
role = "aut"))
40+
NeedsCompilation: yes
41+
Packaged: 2025-03-28 01:35:52 UTC; tomoaki
42+
Author: Joe Conway [aut],
43+
Dirk Eddelbuettel [aut],
44+
Tomoaki Nishiyama [aut, cre],
45+
Sameer Kumar Prayaga [aut] (during 2008),
46+
Neil Tiffin [aut]

RPostgreSQL/src/libpq/Makefile.darwin

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ LIBS := $(LIBS:-lpgport=)
3737

3838
# We can't use Makefile variables here because the MSVC build system scrapes
3939
# OBJS from this file.
40-
OBJS= fe-auth.o fe-connect.o fe-exec.o fe-misc.o fe-print.o fe-lobj.o \
40+
OBJS= fe-auth.o fe-connect.o fe-exec.o fe-misc.o fe-lobj.o \
4141
fe-protocol2.o fe-protocol3.o pqexpbuffer.o fe-secure.o \
4242
libpq-events.o
4343
# libpgport C files we always use

RPostgreSQL/src/libpq/Makefile.win

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ LIBS := $(LIBS:-lpgport=)
4848

4949
# We can't use Makefile variables here because the MSVC build system scrapes
5050
# OBJS from this file.
51-
OBJS= fe-auth.o fe-connect.o fe-exec.o fe-misc.o fe-print.o fe-lobj.o \
51+
OBJS= fe-auth.o fe-connect.o fe-exec.o fe-misc.o fe-lobj.o \
5252
fe-protocol2.o fe-protocol3.o pqexpbuffer.o fe-secure.o \
5353
libpq-events.o
5454
# libpgport C files we always use

RPostgreSQL/src/libpq/bcc32.mak

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,6 @@ CLEAN :
9292
-@erase "$(INTDIR)\fe-exec.obj"
9393
-@erase "$(INTDIR)\fe-lobj.obj"
9494
-@erase "$(INTDIR)\fe-misc.obj"
95-
-@erase "$(INTDIR)\fe-print.obj"
9695
-@erase "$(INTDIR)\fe-secure.obj"
9796
-@erase "$(INTDIR)\libpq-events.obj"
9897
-@erase "$(INTDIR)\pqexpbuffer.obj"
@@ -138,7 +137,6 @@ LIB32_OBJS= \
138137
"$(INTDIR)\fe-exec.obj" \
139138
"$(INTDIR)\fe-lobj.obj" \
140139
"$(INTDIR)\fe-misc.obj" \
141-
"$(INTDIR)\fe-print.obj" \
142140
"$(INTDIR)\fe-secure.obj" \
143141
"$(INTDIR)\libpq-events.obj" \
144142
"$(INTDIR)\pqexpbuffer.obj" \

RPostgreSQL/src/libpq/blibpqdll.def

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,6 @@ EXPORTS
5050
_PQgetisnull @ 47
5151
_PQclear @ 48
5252
_PQmakeEmptyPGresult @ 49
53-
_PQprint @ 50
54-
_PQdisplayTuples @ 51
55-
_PQprintTuples @ 52
5653
_lo_open @ 53
5754
_lo_close @ 54
5855
_lo_read @ 55
@@ -223,9 +220,6 @@ EXPORTS
223220
PQgetisnull = _PQgetisnull
224221
PQclear = _PQclear
225222
PQmakeEmptyPGresult = _PQmakeEmptyPGresult
226-
PQprint = _PQprint
227-
PQdisplayTuples = _PQdisplayTuples
228-
PQprintTuples = _PQprintTuples
229223
lo_open = _lo_open
230224
lo_close = _lo_close
231225
lo_read = _lo_read

RPostgreSQL/src/libpq/exports.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,6 @@ PQgetlength 46
4949
PQgetisnull 47
5050
PQclear 48
5151
PQmakeEmptyPGresult 49
52-
PQprint 50
53-
PQdisplayTuples 51
54-
PQprintTuples 52
5552
lo_open 53
5653
lo_close 54
5754
lo_read 55

RPostgreSQL/src/libpq/libpq-fe.h

Lines changed: 0 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -167,23 +167,6 @@ typedef struct pgNotify
167167
typedef void (*PQnoticeReceiver) (void *arg, const PGresult *res);
168168
typedef void (*PQnoticeProcessor) (void *arg, const char *message);
169169

170-
/* Print options for PQprint() */
171-
typedef char pqbool;
172-
173-
typedef struct _PQprintOpt
174-
{
175-
pqbool header; /* print output field headings and row count */
176-
pqbool align; /* fill align the fields */
177-
pqbool standard; /* old brain dead format */
178-
pqbool html3; /* output html tables */
179-
pqbool expanded; /* expand tables */
180-
pqbool pager; /* use pager for output if needed */
181-
char *fieldSep; /* field separator */
182-
char *tableOpt; /* insert to HTML <table ...> */
183-
char *caption; /* HTML <caption> */
184-
char **fieldName; /* null terminated array of replacement field
185-
* names */
186-
} PQprintOpt;
187170

188171
/* ----------------
189172
* Structure for the conninfo parameter definitions returned by PQconndefaults
@@ -533,28 +516,6 @@ extern unsigned char *PQescapeBytea(const unsigned char *from, size_t from_lengt
533516

534517

535518

536-
/* === in fe-print.c === */
537-
538-
extern void PQprint(FILE *fout, /* output stream */
539-
const PGresult *res,
540-
const PQprintOpt *ps); /* option structure */
541-
542-
/*
543-
* really old printing routines
544-
*/
545-
extern void PQdisplayTuples(const PGresult *res,
546-
FILE *fp, /* where to send the output */
547-
int fillAlign, /* pad the fields with spaces */
548-
const char *fieldSep, /* field separator */
549-
int printHeader, /* display headers? */
550-
int quiet);
551-
552-
extern void PQprintTuples(const PGresult *res,
553-
FILE *fout, /* output stream */
554-
int printAttName, /* print attribute names */
555-
int terseOutput, /* delimiter bars */
556-
int width); /* width of column, if 0, use variable width */
557-
558519

559520
/* === in fe-lobj.c === */
560521

RPostgreSQL/src/libpq/libpqddll.def

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,6 @@ EXPORTS
5050
PQgetisnull @ 47
5151
PQclear @ 48
5252
PQmakeEmptyPGresult @ 49
53-
PQprint @ 50
54-
PQdisplayTuples @ 51
55-
PQprintTuples @ 52
5653
lo_open @ 53
5754
lo_close @ 54
5855
lo_read @ 55

RPostgreSQL/src/libpq/libpqdll.def

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,6 @@ EXPORTS
5050
PQgetisnull @ 47
5151
PQclear @ 48
5252
PQmakeEmptyPGresult @ 49
53-
PQprint @ 50
54-
PQdisplayTuples @ 51
55-
PQprintTuples @ 52
5653
lo_open @ 53
5754
lo_close @ 54
5855
lo_read @ 55

0 commit comments

Comments
 (0)