Skip to content

Commit be4788a

Browse files
committed
Add some old deparse versions
1 parent dcbec76 commit be4788a

11 files changed

Lines changed: 54283 additions & 2 deletions

Makefile

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,15 @@ DATA = pgl_ddl_deploy--1.0.sql pgl_ddl_deploy--1.0--1.1.sql \
1414
pgl_ddl_deploy--2.4.sql
1515
MODULES = ddl_deparse
1616
MODULE_big = pgl_ddl_deploy
17-
OBJS = postgres_deparse.o pgl_ddl_deploy.o
17+
OBJS = src/postgres_deparse.11.o \
18+
src/postgres_deparse.12.o \
19+
src/postgres_deparse.13.o \
20+
src/postgres_deparse.14.o \
21+
src/postgres_deparse.15.o \
22+
src/postgres_deparse.16.o \
23+
src/postgres_deparse.17.o \
24+
src/postgres_deparse.18.o \
25+
src/pgl_ddl_deploy.o
1826

1927
REGRESS := 01_create_ext 02_setup 03_add_configs 04_deploy 04_deploy_update \
2028
05_allowed 06_multi 07_edges 08_ignored \
File renamed without changes.

src/postgres_deparse.11.c

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

src/postgres_deparse.12.c

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

0 commit comments

Comments
 (0)