mirror of
https://github.com/postgres/postgres.git
synced 2025-11-10 17:42:29 +03:00
here are some patches for 6.5.0 which I already submitted but have never
been applied. The patches are in the .tar.gz attachment at the end:
varchar-array.patch this patch adds support for arrays of bpchar() and
varchar(), which where always missing from postgres.
These datatypes can be used to replace the _char4,
_char8, etc., which were dropped some time ago.
block-size.patch this patch fixes many errors in the parser and other
program which happen with very large query statements
(> 8K) when using a page size larger than 8192.
This patch is needed if you want to submit queries
larger than 8K. Postgres supports tuples up to 32K
but you can't insert them because you can't submit
queries larger than 8K. My patch fixes this problem.
The patch also replaces all the occurrences of `8192'
and `1<<13' in the sources with the proper constants
defined in include files. You should now never find
8192 hardwired in C code, just to make code clearer.
--
Massimo Dal Zotto
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/libpq/be-fsstubs.c,v 1.28 1999/02/13 23:15:41 momjian Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/libpq/be-fsstubs.c,v 1.29 1999/05/03 19:09:39 momjian Exp $
|
||||
*
|
||||
* NOTES
|
||||
* This should be moved to a more appropriate place. It is here
|
||||
@@ -44,7 +44,9 @@
|
||||
/* [PA] is Pascal Andr<64> <andre@via.ecp.fr> */
|
||||
|
||||
/*#define FSDB 1*/
|
||||
#define MAX_LOBJ_FDS 256
|
||||
#define MAX_LOBJ_FDS 256
|
||||
#define BUFSIZE 1024
|
||||
#define FNAME_BUFSIZE 8192
|
||||
|
||||
static LargeObjectDesc *cookies[MAX_LOBJ_FDS];
|
||||
|
||||
@@ -257,9 +259,8 @@ lo_import(text *filename)
|
||||
int nbytes,
|
||||
tmp;
|
||||
|
||||
#define BUFSIZE 1024
|
||||
char buf[BUFSIZE];
|
||||
char fnamebuf[8192];
|
||||
char fnamebuf[FNAME_BUFSIZE];
|
||||
LargeObjectDesc *lobj;
|
||||
Oid lobjOid;
|
||||
|
||||
@@ -324,9 +325,8 @@ lo_export(Oid lobjId, text *filename)
|
||||
int nbytes,
|
||||
tmp;
|
||||
|
||||
#define BUFSIZE 1024
|
||||
char buf[BUFSIZE];
|
||||
char fnamebuf[8192];
|
||||
char fnamebuf[FNAME_BUFSIZE];
|
||||
LargeObjectDesc *lobj;
|
||||
mode_t oumask;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user