Can't drop tables with names longer than 16 characters.
Apply this patch.
===================================================================
RCS file: /usr/local/devel/pglite/cvs/src/RELEASE.patchlevel,v
retrieving revision 1.6
diff -c -r1.6 RELEASE.patchlevel
*** 1.6 1996/02/24 01:31:31
--- RELEASE.patchlevel 1996/02/28 16:36:10
***************
*** 3,10 ****
## This file is used to maintain sequencing of patches
version: 1.01
! patch level: 0
! patch date: Fri Feb 23 17:30:58 PST 1996
--- 3,10 ----
## This file is used to maintain sequencing of patches
version: 1.01
! patch level: 1
! patch date: Wed Feb 28 08:33:28 PST 1996
===================================================================
RCS file: /usr/local/devel/pglite/cvs/src/backend/storage/smgr/md.c,v
retrieving revision 1.8
diff -c -r1.8 md.c
*** 1.8 1996/02/24 00:41:16
--- src/backend/storage/smgr/md.c 1996/02/28 16:25:50
***************
*** 146,153 ****
int i;
MdfdVec *v, *ov;
MemoryContext oldcxt;
! char fname[20]; /* XXX should have NAMESIZE defined */
! char tname[20];
/* On Windows NT you can't unlink a file if it is open so we have
** to do this.
--- 146,153 ----
int i;
MdfdVec *v, *ov;
MemoryContext oldcxt;
! char fname[NAMEDATALEN];
! char tname[NAMEDATALEN+10]; /* leave room for overflow suffixes*/
/* On Windows NT you can't unlink a file if it is open so we have
** to do this.
***************
*** 157,164 ****
#endif /* WIN32 */
! memset(fname,0,20);
! strncpy(fname, RelationGetRelationName(reln)->data, 16);
if (FileNameUnlink(fname) < 0)
return (SM_FAIL);
--- 157,164 ----
#endif /* WIN32 */
! memset(fname,0, NAMEDATALEN);
! strncpy(fname, RelationGetRelationName(reln)->data, NAMEDATALEN);
if (FileNameUnlink(fname) < 0)
return (SM_FAIL);