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
0bd22329
Commit
0bd22329
authored
Oct 22, 2002
by
Peter Eisentraut
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update build system.
parent
1c23cf43
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
31 additions
and
62 deletions
+31
-62
contrib/xml/Makefile
contrib/xml/Makefile
+7
-39
contrib/xml/README.pgxml
contrib/xml/README.pgxml
+0
-0
contrib/xml/pgxml.source
contrib/xml/pgxml.source
+0
-7
contrib/xml/pgxml.sql.in
contrib/xml/pgxml.sql.in
+12
-0
contrib/xml/pgxml_dom.source
contrib/xml/pgxml_dom.source
+0
-16
contrib/xml/pgxml_dom.sql.in
contrib/xml/pgxml_dom.sql.in
+12
-0
No files found.
contrib/xml/Makefile
View file @
0bd22329
#-------------------------------------------------------------------------
#
# Makefile--
# Adapted from tutorial makefile
#-------------------------------------------------------------------------
# $Header: /cvsroot/pgsql/contrib/xml/Attic/Makefile,v 1.3 2002/10/22 20:03:09 petere Exp $
subdir
=
contrib/xml
top_builddir
=
../..
include
$(top_builddir)/src/Makefile.global
override
CFLAGS
+=
$(CFLAGS_SL)
-g
#
# DLOBJS is the dynamically-loaded object files. The "funcs" queries
# include CREATE FUNCTIONs that load routines from these files.
#
DLOBJS
=
pgxml_dom
$(DLSUFFIX)
QUERIES
=
pgxml_dom.sql
all
:
$(DLOBJS) $(QUERIES)
%.so
:
%.o
$(CC)
-shared
-lxml2
-o
$@
$<
%.sql
:
%.source
if
[
-z
"
$$
USER"
]
;
then
USER
=
$$
LOGNAME
;
fi
;
\
if
[
-z
"
$$
USER"
]
;
then
USER
=
`
whoami
`
;
fi
;
\
if
[
-z
"
$$
USER"
]
;
then
echo
'Cannot deduce $$USER.'
;
exit
1
;
fi
;
\
rm
-f
$@
;
\
C
=
`
pwd
`
;
\
sed
-e
"s:_CWD_:
$$
C:g"
\
-e
"s:_OBJWD_:
$$
C:g"
\
-e
"s:_DLSUFFIX_:
$(DLSUFFIX)
:g"
\
-e
"s/_USER_/
$$
USER/g"
<
$<
>
$@
clean
:
rm
-f
$(DLOBJS)
$(QUERIES)
MODULE_big
=
pgxml_dom
OBJS
=
pgxml_dom.o
SHLIB_LINK
=
-lxml2
DATA_built
=
pgxml_dom.sql
DOCS
=
README.pgxml
include
$(top_srcdir)/contrib/contrib-global.mk
contrib/xml/README
→
contrib/xml/README
.pgxml
View file @
0bd22329
File moved
contrib/xml/pgxml.source
deleted
100644 → 0
View file @
1c23cf43
--SQL for XML parser
CREATE FUNCTION pgxml_parse(text) RETURNS bool
AS '_OBJWD_/pgxml_DLSUFFIX_' LANGUAGE 'c' WITH (isStrict);
CREATE FUNCTION pgxml_xpath(text,text,text,text) RETURNS text
AS '_OBJWD_/pgxml_DLSUFFIX_' LANGUAGE 'c' WITH (isStrict);
\ No newline at end of file
contrib/xml/pgxml.sql.in
0 → 100644
View file @
0bd22329
-- SQL for XML parser
-- Adjust this setting to control where the objects get created.
SET search_path TO public;
SET autocommit TO on;
CREATE OR REPLACE FUNCTION pgxml_parse(text) RETURNS boolean
AS 'MODULE_PATHNAME' LANGUAGE c STRICT;
CREATE OR REPLACE FUNCTION pgxml_xpath(text, text, text, text) RETURNS text
AS 'MODULE_PATHNAME' LANGUAGE c STRICT;
contrib/xml/pgxml_dom.source
deleted
100644 → 0
View file @
1c23cf43
--SQL for XML parser
-- Adjust this setting to control where the objects get created.
SET search_path = public;
SET autocommit TO 'on';
CREATE OR REPLACE FUNCTION pgxml_parse(text)
RETURNS bool
AS '_OBJWD_/pgxml_dom_DLSUFFIX_'
LANGUAGE 'c' WITH (isStrict);
CREATE OR REPLACE FUNCTION pgxml_xpath(text,text,text,text)
RETURNS text
AS '_OBJWD_/pgxml_dom_DLSUFFIX_'
LANGUAGE 'c' WITH (isStrict);
contrib/xml/pgxml_dom.sql.in
0 → 100644
View file @
0bd22329
-- SQL for XML parser
-- Adjust this setting to control where the objects get created.
SET search_path TO public;
SET autocommit TO on;
CREATE OR REPLACE FUNCTION pgxml_parse(text) RETURNS boolean
AS 'MODULE_PATHNAME' LANGUAGE c STRICT;
CREATE OR REPLACE FUNCTION pgxml_xpath(text, text, text, text) RETURNS text
AS 'MODULE_PATHNAME' LANGUAGE c STRICT;
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