File tree Expand file tree Collapse file tree 11 files changed +422
-325
lines changed Expand file tree Collapse file tree 11 files changed +422
-325
lines changed Original file line number Diff line number Diff line change 4
4
# Makefile for storage/buffer
5
5
#
6
6
# IDENTIFICATION
7
- # $Header: /cvsroot/pgsql/src/backend/storage/buffer/Makefile,v 1.7 1998/04/06 00:24:58 momjian Exp $
7
+ # $Header: /cvsroot/pgsql/src/backend/storage/buffer/Makefile,v 1.8 1998/04/29 12:37:51 scrappy Exp $
8
8
#
9
9
# -------------------------------------------------------------------------
10
10
@@ -24,7 +24,11 @@ depend dep:
24
24
$(CC ) -MM $(CFLAGS ) * .c > depend
25
25
26
26
clean :
27
- rm -f SUBSYS.o $(OBJS )
27
+ rm -f SUBSYS.o $(OBJS ) tas_test
28
+
29
+ tas_test : s_lock.c
30
+ $(CC ) $(CFLAGS ) -DTAS_TEST=1 -g s_lock.c -o tas_test
31
+ ./tas_test
28
32
29
33
ifeq (depend,$(wildcard depend) )
30
34
include depend
Original file line number Diff line number Diff line change 4
4
# Makefile for utils/adt
5
5
#
6
6
# IDENTIFICATION
7
- # $Header: /cvsroot/pgsql/src/backend/utils/adt/Makefile,v 1.12 1998/04/06 00:26:19 momjian Exp $
7
+ # $Header: /cvsroot/pgsql/src/backend/utils/adt/Makefile,v 1.13 1998/04/29 12:38:01 scrappy Exp $
8
8
#
9
9
# -------------------------------------------------------------------------
10
10
@@ -22,7 +22,7 @@ OBJS = acl.o arrayfuncs.o arrayutils.o bool.o cash.o char.o chunk.o date.o \
22
22
misc.o nabstime.o name.o not_in.o numutils.o oid.o \
23
23
oidname.o oidint2.o oidint4.o oracle_compat.o regexp.o regproc.o \
24
24
selfuncs.o \
25
- tid.o varchar.o varlena.o sets.o datetime.o like.o timestamp.o
25
+ tid.o varchar.o varlena.o sets.o datetime.o like.o timestamp.o version.o
26
26
27
27
all : SUBSYS.o
28
28
Original file line number Diff line number Diff line change
1
+ /*-------------------------------------------------------------------------
2
+ *
3
+ * version.c--
4
+ * Returns the version string
5
+ *
6
+ * IDENTIFICATION
7
+ *
8
+ * $Header: /cvsroot/pgsql/src/backend/utils/adt/version.c,v 1.1 1998/04/29 12:38:05 scrappy Exp $
9
+ *
10
+ *-------------------------------------------------------------------------
11
+ */
12
+
13
+ #include "postgres.h"
14
+ #include "version.h"
15
+
16
+
17
+ text * version (void );
18
+
19
+ text * version (void )
20
+ {
21
+ int n = strlen (PG_VERSION_STR ) + VARHDRSZ ;
22
+ text * ret = (text * ) palloc (n );
23
+
24
+ VARSIZE (ret ) = n ;
25
+ strcpy (VARDATA (ret ), PG_VERSION_STR );
26
+
27
+ return ret ;
28
+ }
You can’t perform that action at this time.
0 commit comments