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
7e77668e
Commit
7e77668e
authored
Oct 27, 2000
by
Peter Eisentraut
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make regression tests work with VPATH builds.
parent
29f6c8df
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
119 additions
and
91 deletions
+119
-91
src/test/regress/GNUmakefile
src/test/regress/GNUmakefile
+35
-7
src/test/regress/input/constraints.source
src/test/regress/input/constraints.source
+2
-2
src/test/regress/input/copy.source
src/test/regress/input/copy.source
+21
-21
src/test/regress/input/create_function_1.source
src/test/regress/input/create_function_1.source
+8
-8
src/test/regress/input/create_function_2.source
src/test/regress/input/create_function_2.source
+6
-6
src/test/regress/input/misc.source
src/test/regress/input/misc.source
+5
-5
src/test/regress/output/constraints.source
src/test/regress/output/constraints.source
+2
-2
src/test/regress/output/copy.source
src/test/regress/output/copy.source
+21
-21
src/test/regress/output/create_function_1.source
src/test/regress/output/create_function_1.source
+8
-8
src/test/regress/output/create_function_2.source
src/test/regress/output/create_function_2.source
+6
-6
src/test/regress/output/misc.source
src/test/regress/output/misc.source
+5
-5
No files found.
src/test/regress/GNUmakefile
View file @
7e77668e
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
#
#
#
#
# IDENTIFICATION
# IDENTIFICATION
# $Header: /cvsroot/pgsql/src/test/regress/GNUmakefile,v 1.
29 2000/10/23 21:44:07
petere Exp $
# $Header: /cvsroot/pgsql/src/test/regress/GNUmakefile,v 1.
30 2000/10/27 20:00:19
petere Exp $
#
#
#-------------------------------------------------------------------------
#-------------------------------------------------------------------------
...
@@ -60,11 +60,36 @@ output_files := $(foreach file, $(file_list), expected/$(file).out)
...
@@ -60,11 +60,36 @@ output_files := $(foreach file, $(file_list), expected/$(file).out)
all
:
$(input_files) $(output_files)
all
:
$(input_files) $(output_files)
sql/%.sql
:
input/%.source
abs_srcdir
:=
$(
shell
cd
$(srcdir)
&&
pwd
)
pwd
=
`
pwd
`
&&
sed
"s,_OBJWD_,
$$
pwd,g;s/_DLSUFFIX_/
$(DLSUFFIX)
/g"
$(srcdir)
/
$<
>
$@
abs_builddir
:=
$(
shell
pwd
)
expected/%.out
:
output/%.source
define
sed-command
pwd
=
`
pwd
`
&&
sed
"s,_OBJWD_,
$$
pwd,g;s/_DLSUFFIX_/
$(DLSUFFIX)
/g"
$(srcdir)
/
$<
>
$@
sed
-e
's,@abs_srcdir@,$(abs_srcdir),g'
\
-e
's,@abs_builddir@,$(abs_builddir),g'
\
-e
's/@DLSUFFIX@/$(DLSUFFIX)/g'
$<
>$@
endef
$(input_files)
:
sql/%.sql: input/%.source
$
(
sed-command
)
$(output_files)
:
expected/%.out: output/%.source
$
(
sed-command
)
# When doing a VPATH build, copy over the remaining .sql and .out
# files so that the driver script can find them. We have to use an
# absolute path for the targets, because otherwise make will try to
# locate the missing files using VPATH, and will find them in
# $(srcdir), but the point here is that we want to copy them from
# $(srcdir) to the build directory.
ifdef
VPATH
remaining_files_src
:=
$(
wildcard
$(srcdir)
/sql/
*
.sql
)
$(
wildcard
$(srcdir)
/expected/
*
.out
)
remaining_files_build
:=
$(
patsubst
$(srcdir)
/%,
$(abs_builddir)
/%,
$(remaining_files_src)
)
all
:
$(remaining_files_build)
$(remaining_files_build)
:
$(abs_builddir)/%: $(srcdir)/%
ln
-s
$<
$@
endif
# And finally some extra C modules...
# And finally some extra C modules...
...
@@ -81,10 +106,10 @@ all-spi:
...
@@ -81,10 +106,10 @@ all-spi:
##
##
check
:
all
check
:
all
$(SHELL)
./pg_regress
--temp-install
--top-builddir
=
$(top_builddir)
--schedule
=
parallel_schedule
--multibyte
=
$(MULTIBYTE)
$(SHELL)
./pg_regress
--temp-install
--top-builddir
=
$(top_builddir)
--schedule
=
$(srcdir)
/
parallel_schedule
--multibyte
=
$(MULTIBYTE)
installcheck
:
all
installcheck
:
all
$(SHELL)
./pg_regress
--schedule
=
serial_schedule
--multibyte
=
$(MULTIBYTE)
$(SHELL)
./pg_regress
--schedule
=
$(srcdir)
/
serial_schedule
--multibyte
=
$(MULTIBYTE)
# old interfaces follow...
# old interfaces follow...
...
@@ -173,3 +198,6 @@ clean distclean maintainer-clean:
...
@@ -173,3 +198,6 @@ clean distclean maintainer-clean:
ifeq
($(PORTNAME), win)
ifeq
($(PORTNAME), win)
rm
-f
regress.def
rm
-f
regress.def
endif
endif
ifdef
VPATH
rm
-f
$(remaining_files_build)
endif
src/test/regress/input/constraints.source
View file @
7e77668e
...
@@ -189,11 +189,11 @@ CREATE TABLE COPY_TBL (x INT, y TEXT, z INT,
...
@@ -189,11 +189,11 @@ CREATE TABLE COPY_TBL (x INT, y TEXT, z INT,
CONSTRAINT COPY_CON
CONSTRAINT COPY_CON
CHECK (x > 3 AND y <> 'check failed' AND x < 7 ));
CHECK (x > 3 AND y <> 'check failed' AND x < 7 ));
COPY COPY_TBL FROM '
_OBJWD_
/data/constro.data';
COPY COPY_TBL FROM '
@abs_srcdir@
/data/constro.data';
SELECT '' AS two, * FROM COPY_TBL;
SELECT '' AS two, * FROM COPY_TBL;
COPY COPY_TBL FROM '
_OBJWD_
/data/constrf.data';
COPY COPY_TBL FROM '
@abs_srcdir@
/data/constrf.data';
SELECT * FROM COPY_TBL;
SELECT * FROM COPY_TBL;
...
...
src/test/regress/input/copy.source
View file @
7e77668e
...
@@ -5,52 +5,52 @@
...
@@ -5,52 +5,52 @@
-- CLASS POPULATION
-- CLASS POPULATION
-- (any resemblance to real life is purely coincidental)
-- (any resemblance to real life is purely coincidental)
--
--
COPY aggtest FROM '
_OBJWD_
/data/agg.data';
COPY aggtest FROM '
@abs_srcdir@
/data/agg.data';
COPY onek FROM '
_OBJWD_
/data/onek.data';
COPY onek FROM '
@abs_srcdir@
/data/onek.data';
COPY onek TO '
_OBJWD_
/results/onek.data';
COPY onek TO '
@abs_builddir@
/results/onek.data';
DELETE FROM onek;
DELETE FROM onek;
COPY onek FROM '
_OBJWD_
/results/onek.data';
COPY onek FROM '
@abs_builddir@
/results/onek.data';
COPY tenk1 FROM '
_OBJWD_
/data/tenk.data';
COPY tenk1 FROM '
@abs_srcdir@
/data/tenk.data';
COPY slow_emp4000 FROM '
_OBJWD_
/data/rect.data';
COPY slow_emp4000 FROM '
@abs_srcdir@
/data/rect.data';
COPY person FROM '
_OBJWD_
/data/person.data';
COPY person FROM '
@abs_srcdir@
/data/person.data';
COPY emp FROM '
_OBJWD_
/data/emp.data';
COPY emp FROM '
@abs_srcdir@
/data/emp.data';
COPY student FROM '
_OBJWD_
/data/student.data';
COPY student FROM '
@abs_srcdir@
/data/student.data';
COPY stud_emp FROM '
_OBJWD_
/data/stud_emp.data';
COPY stud_emp FROM '
@abs_srcdir@
/data/stud_emp.data';
COPY road FROM '
_OBJWD_
/data/streets.data';
COPY road FROM '
@abs_srcdir@
/data/streets.data';
COPY real_city FROM '
_OBJWD_
/data/real_city.data';
COPY real_city FROM '
@abs_srcdir@
/data/real_city.data';
COPY hash_i4_heap FROM '
_OBJWD_
/data/hash.data';
COPY hash_i4_heap FROM '
@abs_srcdir@
/data/hash.data';
COPY hash_name_heap FROM '
_OBJWD_
/data/hash.data';
COPY hash_name_heap FROM '
@abs_srcdir@
/data/hash.data';
COPY hash_txt_heap FROM '
_OBJWD_
/data/hash.data';
COPY hash_txt_heap FROM '
@abs_srcdir@
/data/hash.data';
COPY hash_f8_heap FROM '
_OBJWD_
/data/hash.data';
COPY hash_f8_heap FROM '
@abs_srcdir@
/data/hash.data';
-- the data in this file has a lot of duplicates in the index key
-- the data in this file has a lot of duplicates in the index key
-- fields, leading to long bucket chains and lots of table expansion.
-- fields, leading to long bucket chains and lots of table expansion.
-- this is therefore a stress test of the bucket overflow code (unlike
-- this is therefore a stress test of the bucket overflow code (unlike
-- the data in hash.data, which has unique index keys).
-- the data in hash.data, which has unique index keys).
--
--
-- COPY hash_ovfl_heap FROM '
_OBJWD_
/data/hashovfl.data';
-- COPY hash_ovfl_heap FROM '
@abs_srcdir@
/data/hashovfl.data';
COPY bt_i4_heap FROM '
_OBJWD_
/data/desc.data';
COPY bt_i4_heap FROM '
@abs_srcdir@
/data/desc.data';
COPY bt_name_heap FROM '
_OBJWD_
/data/hash.data';
COPY bt_name_heap FROM '
@abs_srcdir@
/data/hash.data';
COPY bt_txt_heap FROM '
_OBJWD_
/data/desc.data';
COPY bt_txt_heap FROM '
@abs_srcdir@
/data/desc.data';
COPY bt_f8_heap FROM '
_OBJWD_
/data/hash.data';
COPY bt_f8_heap FROM '
@abs_srcdir@
/data/hash.data';
src/test/regress/input/create_function_1.source
View file @
7e77668e
...
@@ -4,41 +4,41 @@
...
@@ -4,41 +4,41 @@
CREATE FUNCTION widget_in(opaque)
CREATE FUNCTION widget_in(opaque)
RETURNS widget
RETURNS widget
AS '
_OBJWD_/regress_DLSUFFIX_
'
AS '
@abs_builddir@/regress@DLSUFFIX@
'
LANGUAGE 'c';
LANGUAGE 'c';
CREATE FUNCTION widget_out(opaque)
CREATE FUNCTION widget_out(opaque)
RETURNS opaque
RETURNS opaque
AS '
_OBJWD_/regress_DLSUFFIX_
'
AS '
@abs_builddir@/regress@DLSUFFIX@
'
LANGUAGE 'c';
LANGUAGE 'c';
CREATE FUNCTION check_primary_key ()
CREATE FUNCTION check_primary_key ()
RETURNS opaque
RETURNS opaque
AS '
_OBJWD_/../../../contrib/spi/refint_DLSUFFIX_
'
AS '
@abs_builddir@/../../../contrib/spi/refint@DLSUFFIX@
'
LANGUAGE 'newC';
LANGUAGE 'newC';
CREATE FUNCTION check_foreign_key ()
CREATE FUNCTION check_foreign_key ()
RETURNS opaque
RETURNS opaque
AS '
_OBJWD_/../../../contrib/spi/refint_DLSUFFIX_
'
AS '
@abs_builddir@/../../../contrib/spi/refint@DLSUFFIX@
'
LANGUAGE 'newC';
LANGUAGE 'newC';
CREATE FUNCTION autoinc ()
CREATE FUNCTION autoinc ()
RETURNS opaque
RETURNS opaque
AS '
_OBJWD_/../../../contrib/spi/autoinc_DLSUFFIX_
'
AS '
@abs_builddir@/../../../contrib/spi/autoinc@DLSUFFIX@
'
LANGUAGE 'newC';
LANGUAGE 'newC';
CREATE FUNCTION funny_dup17 ()
CREATE FUNCTION funny_dup17 ()
RETURNS opaque
RETURNS opaque
AS '
_OBJWD_/regress_DLSUFFIX_
'
AS '
@abs_builddir@/regress@DLSUFFIX@
'
LANGUAGE 'newC';
LANGUAGE 'newC';
CREATE FUNCTION ttdummy ()
CREATE FUNCTION ttdummy ()
RETURNS opaque
RETURNS opaque
AS '
_OBJWD_/regress_DLSUFFIX_
'
AS '
@abs_builddir@/regress@DLSUFFIX@
'
LANGUAGE 'newC';
LANGUAGE 'newC';
CREATE FUNCTION set_ttdummy (int4)
CREATE FUNCTION set_ttdummy (int4)
RETURNS int4
RETURNS int4
AS '
_OBJWD_/regress_DLSUFFIX_
'
AS '
@abs_builddir@/regress@DLSUFFIX@
'
LANGUAGE 'newC';
LANGUAGE 'newC';
src/test/regress/input/create_function_2.source
View file @
7e77668e
...
@@ -29,31 +29,31 @@ CREATE FUNCTION user_relns()
...
@@ -29,31 +29,31 @@ CREATE FUNCTION user_relns()
CREATE FUNCTION pt_in_widget(point, widget)
CREATE FUNCTION pt_in_widget(point, widget)
RETURNS bool
RETURNS bool
AS '
_OBJWD_/regress_DLSUFFIX_
'
AS '
@abs_builddir@/regress@DLSUFFIX@
'
LANGUAGE 'newC';
LANGUAGE 'newC';
CREATE FUNCTION overpaid(emp)
CREATE FUNCTION overpaid(emp)
RETURNS bool
RETURNS bool
AS '
_OBJWD_/regress_DLSUFFIX_
'
AS '
@abs_builddir@/regress@DLSUFFIX@
'
LANGUAGE 'newC';
LANGUAGE 'newC';
CREATE FUNCTION boxarea(box)
CREATE FUNCTION boxarea(box)
RETURNS float8
RETURNS float8
AS '
_OBJWD_/regress_DLSUFFIX_
'
AS '
@abs_builddir@/regress@DLSUFFIX@
'
LANGUAGE 'newC';
LANGUAGE 'newC';
CREATE FUNCTION interpt_pp(path, path)
CREATE FUNCTION interpt_pp(path, path)
RETURNS point
RETURNS point
AS '
_OBJWD_/regress_DLSUFFIX_
'
AS '
@abs_builddir@/regress@DLSUFFIX@
'
LANGUAGE 'newC';
LANGUAGE 'newC';
CREATE FUNCTION reverse_name(name)
CREATE FUNCTION reverse_name(name)
RETURNS name
RETURNS name
AS '
_OBJWD_/regress_DLSUFFIX_
'
AS '
@abs_builddir@/regress@DLSUFFIX@
'
LANGUAGE 'c';
LANGUAGE 'c';
--
--
-- Function dynamic loading
-- Function dynamic loading
--
--
LOAD '
_OBJWD_/regress_DLSUFFIX_
';
LOAD '
@abs_builddir@/regress@DLSUFFIX@
';
src/test/regress/input/misc.source
View file @
7e77668e
...
@@ -49,25 +49,25 @@ DROP TABLE tmp;
...
@@ -49,25 +49,25 @@ DROP TABLE tmp;
--
--
-- copy
-- copy
--
--
COPY onek TO '
_OBJWD_
/results/onek.data';
COPY onek TO '
@abs_builddir@
/results/onek.data';
DELETE FROM onek;
DELETE FROM onek;
COPY onek FROM '
_OBJWD_
/results/onek.data';
COPY onek FROM '
@abs_builddir@
/results/onek.data';
SELECT unique1 FROM onek WHERE unique1 < 2;
SELECT unique1 FROM onek WHERE unique1 < 2;
DELETE FROM onek2;
DELETE FROM onek2;
COPY onek2 FROM '
_OBJWD_
/results/onek.data';
COPY onek2 FROM '
@abs_builddir@
/results/onek.data';
SELECT unique1 FROM onek2 WHERE unique1 < 2;
SELECT unique1 FROM onek2 WHERE unique1 < 2;
COPY BINARY stud_emp TO '
_OBJWD_
/results/stud_emp.data';
COPY BINARY stud_emp TO '
@abs_builddir@
/results/stud_emp.data';
DELETE FROM stud_emp;
DELETE FROM stud_emp;
COPY BINARY stud_emp FROM '
_OBJWD_
/results/stud_emp.data';
COPY BINARY stud_emp FROM '
@abs_builddir@
/results/stud_emp.data';
SELECT * FROM stud_emp;
SELECT * FROM stud_emp;
...
...
src/test/regress/output/constraints.source
View file @
7e77668e
...
@@ -265,7 +265,7 @@ SELECT * FROM INSERT_TBL;
...
@@ -265,7 +265,7 @@ SELECT * FROM INSERT_TBL;
CREATE TABLE COPY_TBL (x INT, y TEXT, z INT,
CREATE TABLE COPY_TBL (x INT, y TEXT, z INT,
CONSTRAINT COPY_CON
CONSTRAINT COPY_CON
CHECK (x > 3 AND y <> 'check failed' AND x < 7 ));
CHECK (x > 3 AND y <> 'check failed' AND x < 7 ));
COPY COPY_TBL FROM '
_OBJWD_
/data/constro.data';
COPY COPY_TBL FROM '
@abs_srcdir@
/data/constro.data';
SELECT '' AS two, * FROM COPY_TBL;
SELECT '' AS two, * FROM COPY_TBL;
two | x | y | z
two | x | y | z
-----+---+---------------+---
-----+---+---------------+---
...
@@ -273,7 +273,7 @@ SELECT '' AS two, * FROM COPY_TBL;
...
@@ -273,7 +273,7 @@ SELECT '' AS two, * FROM COPY_TBL;
| 6 | OK | 4
| 6 | OK | 4
(2 rows)
(2 rows)
COPY COPY_TBL FROM '
_OBJWD_
/data/constrf.data';
COPY COPY_TBL FROM '
@abs_srcdir@
/data/constrf.data';
ERROR: copy: line 2, CopyFrom: rejected due to CHECK constraint copy_con
ERROR: copy: line 2, CopyFrom: rejected due to CHECK constraint copy_con
SELECT * FROM COPY_TBL;
SELECT * FROM COPY_TBL;
x | y | z
x | y | z
...
...
src/test/regress/output/copy.source
View file @
7e77668e
...
@@ -4,30 +4,30 @@
...
@@ -4,30 +4,30 @@
-- CLASS POPULATION
-- CLASS POPULATION
-- (any resemblance to real life is purely coincidental)
-- (any resemblance to real life is purely coincidental)
--
--
COPY aggtest FROM '
_OBJWD_
/data/agg.data';
COPY aggtest FROM '
@abs_srcdir@
/data/agg.data';
COPY onek FROM '
_OBJWD_
/data/onek.data';
COPY onek FROM '
@abs_srcdir@
/data/onek.data';
COPY onek TO '
_OBJWD_
/results/onek.data';
COPY onek TO '
@abs_builddir@
/results/onek.data';
DELETE FROM onek;
DELETE FROM onek;
COPY onek FROM '
_OBJWD_
/results/onek.data';
COPY onek FROM '
@abs_builddir@
/results/onek.data';
COPY tenk1 FROM '
_OBJWD_
/data/tenk.data';
COPY tenk1 FROM '
@abs_srcdir@
/data/tenk.data';
COPY slow_emp4000 FROM '
_OBJWD_
/data/rect.data';
COPY slow_emp4000 FROM '
@abs_srcdir@
/data/rect.data';
COPY person FROM '
_OBJWD_
/data/person.data';
COPY person FROM '
@abs_srcdir@
/data/person.data';
COPY emp FROM '
_OBJWD_
/data/emp.data';
COPY emp FROM '
@abs_srcdir@
/data/emp.data';
COPY student FROM '
_OBJWD_
/data/student.data';
COPY student FROM '
@abs_srcdir@
/data/student.data';
COPY stud_emp FROM '
_OBJWD_
/data/stud_emp.data';
COPY stud_emp FROM '
@abs_srcdir@
/data/stud_emp.data';
COPY road FROM '
_OBJWD_
/data/streets.data';
COPY road FROM '
@abs_srcdir@
/data/streets.data';
COPY real_city FROM '
_OBJWD_
/data/real_city.data';
COPY real_city FROM '
@abs_srcdir@
/data/real_city.data';
COPY hash_i4_heap FROM '
_OBJWD_
/data/hash.data';
COPY hash_i4_heap FROM '
@abs_srcdir@
/data/hash.data';
COPY hash_name_heap FROM '
_OBJWD_
/data/hash.data';
COPY hash_name_heap FROM '
@abs_srcdir@
/data/hash.data';
COPY hash_txt_heap FROM '
_OBJWD_
/data/hash.data';
COPY hash_txt_heap FROM '
@abs_srcdir@
/data/hash.data';
COPY hash_f8_heap FROM '
_OBJWD_
/data/hash.data';
COPY hash_f8_heap FROM '
@abs_srcdir@
/data/hash.data';
-- the data in this file has a lot of duplicates in the index key
-- the data in this file has a lot of duplicates in the index key
-- fields, leading to long bucket chains and lots of table expansion.
-- fields, leading to long bucket chains and lots of table expansion.
-- this is therefore a stress test of the bucket overflow code (unlike
-- this is therefore a stress test of the bucket overflow code (unlike
-- the data in hash.data, which has unique index keys).
-- the data in hash.data, which has unique index keys).
--
--
-- COPY hash_ovfl_heap FROM '
_OBJWD_
/data/hashovfl.data';
-- COPY hash_ovfl_heap FROM '
@abs_srcdir@
/data/hashovfl.data';
COPY bt_i4_heap FROM '
_OBJWD_
/data/desc.data';
COPY bt_i4_heap FROM '
@abs_srcdir@
/data/desc.data';
COPY bt_name_heap FROM '
_OBJWD_
/data/hash.data';
COPY bt_name_heap FROM '
@abs_srcdir@
/data/hash.data';
COPY bt_txt_heap FROM '
_OBJWD_
/data/desc.data';
COPY bt_txt_heap FROM '
@abs_srcdir@
/data/desc.data';
COPY bt_f8_heap FROM '
_OBJWD_
/data/hash.data';
COPY bt_f8_heap FROM '
@abs_srcdir@
/data/hash.data';
src/test/regress/output/create_function_1.source
View file @
7e77668e
...
@@ -3,34 +3,34 @@
...
@@ -3,34 +3,34 @@
--
--
CREATE FUNCTION widget_in(opaque)
CREATE FUNCTION widget_in(opaque)
RETURNS widget
RETURNS widget
AS '
_OBJWD_/regress_DLSUFFIX_
'
AS '
@abs_builddir@/regress@DLSUFFIX@
'
LANGUAGE 'c';
LANGUAGE 'c';
NOTICE: ProcedureCreate: type 'widget' is not yet defined
NOTICE: ProcedureCreate: type 'widget' is not yet defined
CREATE FUNCTION widget_out(opaque)
CREATE FUNCTION widget_out(opaque)
RETURNS opaque
RETURNS opaque
AS '
_OBJWD_/regress_DLSUFFIX_
'
AS '
@abs_builddir@/regress@DLSUFFIX@
'
LANGUAGE 'c';
LANGUAGE 'c';
CREATE FUNCTION check_primary_key ()
CREATE FUNCTION check_primary_key ()
RETURNS opaque
RETURNS opaque
AS '
_OBJWD_/../../../contrib/spi/refint_DLSUFFIX_
'
AS '
@abs_builddir@/../../../contrib/spi/refint@DLSUFFIX@
'
LANGUAGE 'newC';
LANGUAGE 'newC';
CREATE FUNCTION check_foreign_key ()
CREATE FUNCTION check_foreign_key ()
RETURNS opaque
RETURNS opaque
AS '
_OBJWD_/../../../contrib/spi/refint_DLSUFFIX_
'
AS '
@abs_builddir@/../../../contrib/spi/refint@DLSUFFIX@
'
LANGUAGE 'newC';
LANGUAGE 'newC';
CREATE FUNCTION autoinc ()
CREATE FUNCTION autoinc ()
RETURNS opaque
RETURNS opaque
AS '
_OBJWD_/../../../contrib/spi/autoinc_DLSUFFIX_
'
AS '
@abs_builddir@/../../../contrib/spi/autoinc@DLSUFFIX@
'
LANGUAGE 'newC';
LANGUAGE 'newC';
CREATE FUNCTION funny_dup17 ()
CREATE FUNCTION funny_dup17 ()
RETURNS opaque
RETURNS opaque
AS '
_OBJWD_/regress_DLSUFFIX_
'
AS '
@abs_builddir@/regress@DLSUFFIX@
'
LANGUAGE 'newC';
LANGUAGE 'newC';
CREATE FUNCTION ttdummy ()
CREATE FUNCTION ttdummy ()
RETURNS opaque
RETURNS opaque
AS '
_OBJWD_/regress_DLSUFFIX_
'
AS '
@abs_builddir@/regress@DLSUFFIX@
'
LANGUAGE 'newC';
LANGUAGE 'newC';
CREATE FUNCTION set_ttdummy (int4)
CREATE FUNCTION set_ttdummy (int4)
RETURNS int4
RETURNS int4
AS '
_OBJWD_/regress_DLSUFFIX_
'
AS '
@abs_builddir@/regress@DLSUFFIX@
'
LANGUAGE 'newC';
LANGUAGE 'newC';
src/test/regress/output/create_function_2.source
View file @
7e77668e
...
@@ -22,25 +22,25 @@ CREATE FUNCTION user_relns()
...
@@ -22,25 +22,25 @@ CREATE FUNCTION user_relns()
LANGUAGE 'sql';
LANGUAGE 'sql';
CREATE FUNCTION pt_in_widget(point, widget)
CREATE FUNCTION pt_in_widget(point, widget)
RETURNS bool
RETURNS bool
AS '
_OBJWD_/regress_DLSUFFIX_
'
AS '
@abs_builddir@/regress@DLSUFFIX@
'
LANGUAGE 'newC';
LANGUAGE 'newC';
CREATE FUNCTION overpaid(emp)
CREATE FUNCTION overpaid(emp)
RETURNS bool
RETURNS bool
AS '
_OBJWD_/regress_DLSUFFIX_
'
AS '
@abs_builddir@/regress@DLSUFFIX@
'
LANGUAGE 'newC';
LANGUAGE 'newC';
CREATE FUNCTION boxarea(box)
CREATE FUNCTION boxarea(box)
RETURNS float8
RETURNS float8
AS '
_OBJWD_/regress_DLSUFFIX_
'
AS '
@abs_builddir@/regress@DLSUFFIX@
'
LANGUAGE 'newC';
LANGUAGE 'newC';
CREATE FUNCTION interpt_pp(path, path)
CREATE FUNCTION interpt_pp(path, path)
RETURNS point
RETURNS point
AS '
_OBJWD_/regress_DLSUFFIX_
'
AS '
@abs_builddir@/regress@DLSUFFIX@
'
LANGUAGE 'newC';
LANGUAGE 'newC';
CREATE FUNCTION reverse_name(name)
CREATE FUNCTION reverse_name(name)
RETURNS name
RETURNS name
AS '
_OBJWD_/regress_DLSUFFIX_
'
AS '
@abs_builddir@/regress@DLSUFFIX@
'
LANGUAGE 'c';
LANGUAGE 'c';
--
--
-- Function dynamic loading
-- Function dynamic loading
--
--
LOAD '
_OBJWD_/regress_DLSUFFIX_
';
LOAD '
@abs_builddir@/regress@DLSUFFIX@
';
src/test/regress/output/misc.source
View file @
7e77668e
...
@@ -39,9 +39,9 @@ DROP TABLE tmp;
...
@@ -39,9 +39,9 @@ DROP TABLE tmp;
--
--
-- copy
-- copy
--
--
COPY onek TO '
_OBJWD_
/results/onek.data';
COPY onek TO '
@abs_builddir@
/results/onek.data';
DELETE FROM onek;
DELETE FROM onek;
COPY onek FROM '
_OBJWD_
/results/onek.data';
COPY onek FROM '
@abs_builddir@
/results/onek.data';
SELECT unique1 FROM onek WHERE unique1 < 2;
SELECT unique1 FROM onek WHERE unique1 < 2;
unique1
unique1
---------
---------
...
@@ -50,7 +50,7 @@ SELECT unique1 FROM onek WHERE unique1 < 2;
...
@@ -50,7 +50,7 @@ SELECT unique1 FROM onek WHERE unique1 < 2;
(2 rows)
(2 rows)
DELETE FROM onek2;
DELETE FROM onek2;
COPY onek2 FROM '
_OBJWD_
/results/onek.data';
COPY onek2 FROM '
@abs_builddir@
/results/onek.data';
SELECT unique1 FROM onek2 WHERE unique1 < 2;
SELECT unique1 FROM onek2 WHERE unique1 < 2;
unique1
unique1
---------
---------
...
@@ -58,9 +58,9 @@ SELECT unique1 FROM onek2 WHERE unique1 < 2;
...
@@ -58,9 +58,9 @@ SELECT unique1 FROM onek2 WHERE unique1 < 2;
1
1
(2 rows)
(2 rows)
COPY BINARY stud_emp TO '
_OBJWD_
/results/stud_emp.data';
COPY BINARY stud_emp TO '
@abs_builddir@
/results/stud_emp.data';
DELETE FROM stud_emp;
DELETE FROM stud_emp;
COPY BINARY stud_emp FROM '
_OBJWD_
/results/stud_emp.data';
COPY BINARY stud_emp FROM '
@abs_builddir@
/results/stud_emp.data';
SELECT * FROM stud_emp;
SELECT * FROM stud_emp;
name | age | location | salary | manager | gpa | percent
name | age | location | salary | manager | gpa | percent
-------+-----+------------+--------+---------+-----+---------
-------+-----+------------+--------+---------+-----+---------
...
...
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