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
2ac3173d
Commit
2ac3173d
authored
Oct 09, 1998
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
major/minor shared name cleanup
parent
0044a1bc
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
55 additions
and
21 deletions
+55
-21
src/backend/commands/vacuum.c
src/backend/commands/vacuum.c
+32
-1
src/backend/parser/gram.c
src/backend/parser/gram.c
+4
-4
src/interfaces/libpgtcl/Makefile.in
src/interfaces/libpgtcl/Makefile.in
+11
-8
src/interfaces/libpq/Makefile.in
src/interfaces/libpq/Makefile.in
+3
-3
src/interfaces/odbc/GNUmakefile.in
src/interfaces/odbc/GNUmakefile.in
+5
-5
No files found.
src/backend/commands/vacuum.c
View file @
2ac3173d
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/commands/vacuum.c,v 1.8
5 1998/10/08 00:10:46
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/commands/vacuum.c,v 1.8
6 1998/10/09 21:28:40
momjian Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -103,6 +103,8 @@ static int vc_cmp_blk(char *left, char *right);
...
@@ -103,6 +103,8 @@ static int vc_cmp_blk(char *left, char *right);
static
int
vc_cmp_offno
(
char
*
left
,
char
*
right
);
static
int
vc_cmp_offno
(
char
*
left
,
char
*
right
);
static
bool
vc_enough_space
(
VPageDescr
vpd
,
Size
len
);
static
bool
vc_enough_space
(
VPageDescr
vpd
,
Size
len
);
void
test
(
Oid
relid
);
void
void
vacuum
(
char
*
vacrel
,
bool
verbose
,
bool
analyze
,
List
*
va_spec
)
vacuum
(
char
*
vacrel
,
bool
verbose
,
bool
analyze
,
List
*
va_spec
)
{
{
...
@@ -329,6 +331,9 @@ vc_getrels(NameData *VacRelP)
...
@@ -329,6 +331,9 @@ vc_getrels(NameData *VacRelP)
cur
->
vrl_relid
=
tuple
->
t_oid
;
cur
->
vrl_relid
=
tuple
->
t_oid
;
cur
->
vrl_next
=
(
VRelList
)
NULL
;
cur
->
vrl_next
=
(
VRelList
)
NULL
;
test
(
tuple
->
t_oid
);
}
}
if
(
found
==
false
)
if
(
found
==
false
)
elog
(
NOTICE
,
"Vacuum: table not found"
);
elog
(
NOTICE
,
"Vacuum: table not found"
);
...
@@ -2245,3 +2250,29 @@ vc_enough_space(VPageDescr vpd, Size len)
...
@@ -2245,3 +2250,29 @@ vc_enough_space(VPageDescr vpd, Size len)
return
false
;
return
false
;
}
/* vc_enough_space */
}
/* vc_enough_space */
void
test
(
Oid
relid
)
{
Relation
rd
;
HeapTuple
rtup
,
ctup
;
Buffer
buffer
;
/*
* update number of tuples and number of pages in pg_class
*/
ctup
=
SearchSysCacheTupleCopy
(
RELOID
,
ObjectIdGetDatum
(
relid
),
0
,
0
,
0
);
if
(
!
HeapTupleIsValid
(
ctup
))
elog
(
ERROR
,
"pg_class entry for relid %d vanished during vacuuming"
,
relid
);
rd
=
heap_openr
(
RelationRelationName
);
/* get the buffer cache tuple */
rtup
=
heap_fetch
(
rd
,
SnapshotNow
,
&
ctup
->
t_ctid
,
&
buffer
);
pfree
(
ctup
);
heap_close
(
rd
);
}
src/backend/parser/gram.c
View file @
2ac3173d
...
@@ -229,7 +229,7 @@
...
@@ -229,7 +229,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/parser/Attic/gram.c,v 2.4
3 1998/10/09 07:06:37 thomas
Exp $
* $Header: /cvsroot/pgsql/src/backend/parser/Attic/gram.c,v 2.4
4 1998/10/09 21:28:42 momjian
Exp $
*
*
* HISTORY
* HISTORY
* AUTHOR DATE MAJOR EVENT
* AUTHOR DATE MAJOR EVENT
...
@@ -4450,7 +4450,7 @@ static const short yycheck[] = { 3,
...
@@ -4450,7 +4450,7 @@ static const short yycheck[] = { 3,
-
1
,
-
1
,
-
1
,
-
1
,
-
1
,
-
1
,
-
1
,
-
1
,
204
-
1
,
-
1
,
-
1
,
-
1
,
-
1
,
-
1
,
-
1
,
-
1
,
204
};
};
/* -*-C-*- Note some compilers choke on comments on `#line' lines. */
/* -*-C-*- Note some compilers choke on comments on `#line' lines. */
#line 3 "/usr/l
ib
/bison.simple"
#line 3 "/usr/l
ocal/bison
/bison.simple"
/* Skeleton output parser for bison,
/* Skeleton output parser for bison,
Copyright (C) 1984, 1989, 1990 Free Software Foundation, Inc.
Copyright (C) 1984, 1989, 1990 Free Software Foundation, Inc.
...
@@ -4643,7 +4643,7 @@ __yy_memcpy (char *to, char *from, int count)
...
@@ -4643,7 +4643,7 @@ __yy_memcpy (char *to, char *from, int count)
#endif
#endif
#endif
#endif
#line 196 "/usr/l
ib
/bison.simple"
#line 196 "/usr/l
ocal/bison
/bison.simple"
/* The user can define YYPARSE_PARAM as the name of an argument to be passed
/* The user can define YYPARSE_PARAM as the name of an argument to be passed
into yyparse. The argument should have type void *.
into yyparse. The argument should have type void *.
...
@@ -10398,7 +10398,7 @@ case 929:
...
@@ -10398,7 +10398,7 @@ case 929:
break
;}
break
;}
}
}
/* the action file gets copied in in place of this dollarsign */
/* the action file gets copied in in place of this dollarsign */
#line 498 "/usr/l
ib
/bison.simple"
#line 498 "/usr/l
ocal/bison
/bison.simple"
yyvsp
-=
yylen
;
yyvsp
-=
yylen
;
yyssp
-=
yylen
;
yyssp
-=
yylen
;
...
...
src/interfaces/libpgtcl/Makefile.in
View file @
2ac3173d
...
@@ -7,10 +7,13 @@
...
@@ -7,10 +7,13 @@
#
#
#
#
# IDENTIFICATION
# IDENTIFICATION
# $Header: /cvsroot/pgsql/src/interfaces/libpgtcl/Attic/Makefile.in,v 1.2
5 1998/10/09 04:50:0
6 momjian Exp $
# $Header: /cvsroot/pgsql/src/interfaces/libpgtcl/Attic/Makefile.in,v 1.2
6 1998/10/09 21:28:4
6 momjian Exp $
#
#
#-------------------------------------------------------------------------
#-------------------------------------------------------------------------
SO_MAJOR_VERSION
=
2
SO_MINOR_VERSION
=
0
SRCDIR
=
../..
SRCDIR
=
../..
include
$(SRCDIR)/Makefile.global
include
$(SRCDIR)/Makefile.global
...
@@ -35,7 +38,7 @@ LIBPQ = -L$(SRCDIR)/interfaces/libpq -lpq
...
@@ -35,7 +38,7 @@ LIBPQ = -L$(SRCDIR)/interfaces/libpq -lpq
ifeq
($(PORTNAME), linux)
ifeq
($(PORTNAME), linux)
install-shlib-dep
:=
install-shlib
install-shlib-dep
:=
install-shlib
shlib
:=
libpgtcl.so.
1
shlib
:=
libpgtcl.so.
$(SO_MAJOR_VERSION)
.
$(SO_MINOR_VERSION)
CFLAGS
+=
$(CFLAGS_SL)
CFLAGS
+=
$(CFLAGS_SL)
LDFLAGS_SL
=
-shared
LDFLAGS_SL
=
-shared
endif
endif
...
@@ -43,7 +46,7 @@ endif
...
@@ -43,7 +46,7 @@ endif
ifeq
($(PORTNAME), bsd)
ifeq
($(PORTNAME), bsd)
ifdef
BSD_SHLIB
ifdef
BSD_SHLIB
install-shlib-dep
:=
install-shlib
install-shlib-dep
:=
install-shlib
shlib
:=
libpgtcl.so.
1.0
shlib
:=
libpgtcl.so.
$(SO_MAJOR_VERSION)
.
$(SO_MINOR_VERSION)
LDFLAGS_SL
=
-x
-Bshareable
-Bforcearchive
LDFLAGS_SL
=
-x
-Bshareable
-Bforcearchive
CFLAGS
+=
$(CFLAGS_SL)
CFLAGS
+=
$(CFLAGS_SL)
endif
endif
...
@@ -53,13 +56,13 @@ ifeq ($(PORTNAME), bsdi)
...
@@ -53,13 +56,13 @@ ifeq ($(PORTNAME), bsdi)
ifdef
BSD_SHLIB
ifdef
BSD_SHLIB
ifeq
($(DLSUFFIX), .so)
ifeq
($(DLSUFFIX), .so)
install-shlib-dep
:=
install-shlib
install-shlib-dep
:=
install-shlib
shlib
:=
libpgtcl.so
shlib
:=
libpgtcl.so
.
$(SO_MAJOR_VERSION)
.
$(SO_MINOR_VERSION)
LDFLAGS_SL
+=
-shared
LDFLAGS_SL
+=
-shared
CFLAGS
+=
$(CFLAGS_SL)
CFLAGS
+=
$(CFLAGS_SL)
endif
endif
ifeq
($(DLSUFFIX), .o)
ifeq
($(DLSUFFIX), .o)
install-shlib-dep
:=
install-shlib
install-shlib-dep
:=
install-shlib
shlib
:=
libpgtcl.o
shlib
:=
libpgtcl.o
.
$(SO_MAJOR_VERSION)
.
$(SO_MINOR_VERSION)
LD
:=
shlicc
LD
:=
shlicc
LDFLAGS_SL
+=
-O
-r
LDFLAGS_SL
+=
-O
-r
CFLAGS
+=
$(CFLAGS_SL)
CFLAGS
+=
$(CFLAGS_SL)
...
@@ -69,21 +72,21 @@ endif
...
@@ -69,21 +72,21 @@ endif
ifeq
($(PORTNAME), solaris)
ifeq
($(PORTNAME), solaris)
install-shlib-dep
:=
install-shlib
install-shlib-dep
:=
install-shlib
shlib
:=
libpgtcl.so.
1
shlib
:=
libpgtcl.so.
$(SO_MAJOR_VERSION)
.
$(SO_MINOR_VERSION)
LDFLAGS_SL
:=
-G
-z
text
LDFLAGS_SL
:=
-G
-z
text
CFLAGS
+=
$(CFLAGS_SL)
CFLAGS
+=
$(CFLAGS_SL)
endif
endif
ifeq
($(PORTNAME), unixware)
ifeq
($(PORTNAME), unixware)
install-shlib-dep
:=
install-shlib
install-shlib-dep
:=
install-shlib
shlib
:=
libpgtcl.so.
1
shlib
:=
libpgtcl.so.
$(SO_MAJOR_VERSION)
.
$(SO_MINOR_VERSION)
LDFLAGS_SL
:=
-G
-z
text
LDFLAGS_SL
:=
-G
-z
text
CFLAGS
+=
$(CFLAGS_SL)
CFLAGS
+=
$(CFLAGS_SL)
endif
endif
ifeq
($(PORTNAME), univel)
ifeq
($(PORTNAME), univel)
install-shlib-dep
:=
install-shlib
install-shlib-dep
:=
install-shlib
shlib
:=
libpgtcl.so.
1
shlib
:=
libpgtcl.so.
$(SO_MAJOR_VERSION)
.
$(SO_MINOR_VERSION)
LDFLAGS_SL
:=
-G
-z
text
LDFLAGS_SL
:=
-G
-z
text
CFLAGS
+=
$(CFLAGS_SL)
CFLAGS
+=
$(CFLAGS_SL)
endif
endif
...
...
src/interfaces/libpq/Makefile.in
View file @
2ac3173d
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
#
#
#
#
# IDENTIFICATION
# IDENTIFICATION
# $Header: /cvsroot/pgsql/src/interfaces/libpq/Attic/Makefile.in,v 1.3
3 1998/10/09 04:50:0
8 momjian Exp $
# $Header: /cvsroot/pgsql/src/interfaces/libpq/Attic/Makefile.in,v 1.3
4 1998/10/09 21:28:4
8 momjian Exp $
#
#
#-------------------------------------------------------------------------
#-------------------------------------------------------------------------
...
@@ -42,8 +42,8 @@ install-shlib-dep :=
...
@@ -42,8 +42,8 @@ install-shlib-dep :=
ifeq
($(PORTNAME), linux)
ifeq
($(PORTNAME), linux)
install-shlib-dep
:=
install-shlib
install-shlib-dep
:=
install-shlib
shlib
:=
libpq.so.
$(SO_MAJOR_VERSION)
shlib
:=
libpq.so.
$(SO_MAJOR_VERSION)
.
$(SO_MINOR_VERSION)
LDFLAGS_SL
:=
-shared
-soname
libpq.so.
$(SO_MAJOR_VERSION)
LDFLAGS_SL
:=
-shared
-soname
libpq.so.
$(SO_MAJOR_VERSION)
.
$(SO_MINOR_VERSION)
CFLAGS
+=
$(CFLAGS_SL)
CFLAGS
+=
$(CFLAGS_SL)
endif
endif
...
...
src/interfaces/odbc/GNUmakefile.in
View file @
2ac3173d
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
#
#
#
#
# IDENTIFICATION
# IDENTIFICATION
# $Header: /cvsroot/pgsql/src/interfaces/odbc/Attic/GNUmakefile.in,v 1.
3 1998/10/09 07:04:49 thomas
Exp $
# $Header: /cvsroot/pgsql/src/interfaces/odbc/Attic/GNUmakefile.in,v 1.
4 1998/10/09 21:28:50 momjian
Exp $
#
#
#-------------------------------------------------------------------------
#-------------------------------------------------------------------------
@SET_MAKE@
@SET_MAKE@
...
@@ -30,7 +30,7 @@ install-shlib-dep := install-shlib
...
@@ -30,7 +30,7 @@ install-shlib-dep := install-shlib
shlib := lib$(NAME)$(DLSUFFIX).$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION)
shlib := lib$(NAME)$(DLSUFFIX).$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION)
ifeq ($(PORTNAME), linux)
ifeq ($(PORTNAME), linux)
LDFLAGS_SL = -shared -soname lib$(NAME)$(DLSUFFIX).$(SO_MAJOR_VERSION)
LDFLAGS_SL = -shared -soname lib$(NAME)$(DLSUFFIX).$(SO_MAJOR_VERSION)
.$(SO_MINOR_VERSION)
LDFLAGS_SL += -Bsymbolic $(LDFLAGS) -lc -lm
LDFLAGS_SL += -Bsymbolic $(LDFLAGS) -lc -lm
endif
endif
...
@@ -87,9 +87,9 @@ install-libpsqlodbc: libpsqlodbc.a
...
@@ -87,9 +87,9 @@ install-libpsqlodbc: libpsqlodbc.a
install-shlib: $(shlib)
install-shlib: $(shlib)
$(INSTALL) $(INSTL_LIB_OPTS) $(shlib) $(DESTDIR)$(LIBDIR)/$(shlib)
$(INSTALL) $(INSTL_LIB_OPTS) $(shlib) $(DESTDIR)$(LIBDIR)/$(shlib)
rm -f $(DESTDIR)$(LIBDIR)/lib$(NAME)$(DLSUFFIX)
rm -f $(DESTDIR)$(LIBDIR)/lib$(NAME)$(DLSUFFIX)
rm -f $(DESTDIR)$(LIBDIR)/lib$(NAME)$(DLSUFFIX).$(SO_MAJOR_VERSION)
rm -f $(DESTDIR)$(LIBDIR)/lib$(NAME)$(DLSUFFIX).$(SO_MAJOR_VERSION)
.$(SO_MINOR_VERSION)
cd $(DESTDIR)$(LIBDIR) && $(LN_S) -f $(shlib) lib$(NAME)$(DLSUFFIX).$(SO_MAJOR_VERSION)
cd $(DESTDIR)$(LIBDIR) && $(LN_S) -f $(shlib) lib$(NAME)$(DLSUFFIX).$(SO_MAJOR_VERSION)
.$(SO_MINOR_VERSION)
cd $(DESTDIR)$(LIBDIR) && $(LN_S) -f lib$(NAME)$(DLSUFFIX).$(SO_MAJOR_VERSION) lib$(NAME)$(DLSUFFIX)
cd $(DESTDIR)$(LIBDIR) && $(LN_S) -f lib$(NAME)$(DLSUFFIX).$(SO_MAJOR_VERSION)
.$(SO_MINOR_VERSION)
lib$(NAME)$(DLSUFFIX)
install-ini: odbcinst.ini
install-ini: odbcinst.ini
$(INSTALL) $(INSTL_LIB_OPTS) odbcinst.ini $(ODBCINST)
$(INSTALL) $(INSTL_LIB_OPTS) odbcinst.ini $(ODBCINST)
...
...
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