Skip to content

Commit 846a949

Browse files
committed
Merge commit 'f96f5e0a3234463d74e7bb8032a4eef03e1a778b' as 'contrib/wal2json-upstream'
2 parents 6d29cc0 + f96f5e0 commit 846a949

68 files changed

Lines changed: 9878 additions & 0 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
/regression.diffs
2+
/regression.out
3+
/results/
4+
/wal2json.bc
5+
/wal2json.so
6+
*.o

contrib/wal2json-upstream/LICENSE

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
Copyright (c) 2013-2024, Euler Taveira de Oliveira
2+
All rights reserved.
3+
4+
Redistribution and use in source and binary forms, with or without modification,
5+
are permitted provided that the following conditions are met:
6+
7+
* Redistributions of source code must retain the above copyright notice, this
8+
list of conditions and the following disclaimer.
9+
10+
* Redistributions in binary form must reproduce the above copyright notice, this
11+
list of conditions and the following disclaimer in the documentation and/or
12+
other materials provided with the distribution.
13+
14+
* Neither the name of the Euler Taveira de Oliveira nor the names of its
15+
contributors may be used to endorse or promote products derived from
16+
this software without specific prior written permission.
17+
18+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
19+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
20+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
21+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
22+
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
23+
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
24+
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
25+
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
27+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

contrib/wal2json-upstream/Makefile

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
MODULES = wal2json
2+
3+
REGRESS = cmdline insert1 update1 update2 update3 update4 delete1 delete2 \
4+
delete3 delete4 savepoint specialvalue toast bytea message typmod \
5+
filtertable selecttable include_timestamp include_lsn include_xids \
6+
include_domain_data_type truncate type_oid actions position default \
7+
pk rename_column numeric_data_types_as_string
8+
9+
PG_CONFIG = pg_config
10+
PGXS := $(shell $(PG_CONFIG) --pgxs)
11+
include $(PGXS)
12+
13+
# message API is available in 9.6+
14+
ifneq (,$(findstring $(MAJORVERSION),9.4 9.5))
15+
REGRESS := $(filter-out message, $(REGRESS))
16+
endif
17+
18+
# truncate API is available in 11+
19+
ifneq (,$(findstring $(MAJORVERSION),9.4 9.5 9.6 10))
20+
REGRESS := $(filter-out truncate, $(REGRESS))
21+
endif
22+
23+
# actions API is available in 11+
24+
# this test should be executed in prior versions, however, truncate will fail.
25+
ifneq (,$(findstring $(MAJORVERSION),9.4 9.5 9.6 10))
26+
REGRESS := $(filter-out actions, $(REGRESS))
27+
endif
28+
29+
# make installcheck
30+
#
31+
# It can be run but you need to add the following parameters to
32+
# postgresql.conf:
33+
#
34+
# wal_level = logical
35+
# max_replication_slots = 10
36+
#
37+
# Also, you should start the server before executing it.

0 commit comments

Comments
 (0)