Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .github/workflows/go-driver.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ name: Go Driver Tests

on:
push:
branches: [ "master", "PG14" ]
branches: [ "master", "PG15" ]

pull_request:
branches: [ "master", "PG14" ]
branches: [ "master", "PG15" ]

jobs:
build:
Expand All @@ -26,14 +26,14 @@ jobs:
if [[ "$GITHUB_EVENT_NAME" == "push" ]]; then
if [[ "$GITHUB_REF" == "refs/heads/master" ]]; then
echo "TAG=latest" >> $GITHUB_ENV
elif [[ "$GITHUB_REF" == "refs/heads/PG14" ]]; then
echo "TAG=PG14_latest" >> $GITHUB_ENV
elif [[ "$GITHUB_REF" == "refs/heads/PG15" ]]; then
echo "TAG=PG15_latest" >> $GITHUB_ENV
fi
elif [[ "$GITHUB_EVENT_NAME" == "pull_request" ]]; then
if [[ "$GITHUB_BASE_REF" == "master" ]]; then
echo "TAG=latest" >> $GITHUB_ENV
elif [[ "$GITHUB_BASE_REF" == "PG14" ]]; then
echo "TAG=PG14_latest" >> $GITHUB_ENV
elif [[ "$GITHUB_BASE_REF" == "PG15" ]]; then
echo "TAG=PG15_latest" >> $GITHUB_ENV
fi
fi

Expand Down
30 changes: 15 additions & 15 deletions .github/workflows/installcheck.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,45 +2,45 @@ name: Build / Regression

on:
push:
branches: [ 'master', 'PG14' ]
branches: [ 'master', 'PG15' ]
pull_request:
branches: [ 'master', 'PG14' ]
branches: [ 'master', 'PG15' ]

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Get latest commit id of PostgreSQL 14
- name: Get latest commit id of PostgreSQL 15
run: |
echo "PG_COMMIT_HASH=$(git ls-remote git://git.postgresql.org/git/postgresql.git refs/heads/REL_14_STABLE | awk '{print $1}')" >> $GITHUB_ENV
echo "PG_COMMIT_HASH=$(git ls-remote git://git.postgresql.org/git/postgresql.git refs/heads/REL_15_STABLE | awk '{print $1}')" >> $GITHUB_ENV

- name: Cache PostgreSQL 14
- name: Cache PostgreSQL 15
uses: actions/cache@v3
id: pg14cache
id: pg15cache
with:
path: ~/pg14
key: ${{ runner.os }}-v1-pg14-${{ env.PG_COMMIT_HASH }}
path: ~/pg15
key: ${{ runner.os }}-v1-pg15-${{ env.PG_COMMIT_HASH }}

- name: Install PostgreSQL 14
if: steps.pg14cache.outputs.cache-hit != 'true'
- name: Install PostgreSQL 15
if: steps.pg15cache.outputs.cache-hit != 'true'
run: |
git clone --depth 1 --branch REL_14_STABLE git://git.postgresql.org/git/postgresql.git ~/pg14source
cd ~/pg14source
./configure --prefix=$HOME/pg14 CFLAGS="-std=gnu99 -ggdb -O0" --enable-cassert
git clone --depth 1 --branch REL_15_STABLE git://git.postgresql.org/git/postgresql.git ~/pg15source
cd ~/pg15source
./configure --prefix=$HOME/pg15 CFLAGS="-std=gnu99 -ggdb -O0" --enable-cassert
make install -j$(nproc) > /dev/null

- uses: actions/checkout@v3

- name: Build
id: build
run: |
make PG_CONFIG=$HOME/pg14/bin/pg_config install -j$(nproc)
make PG_CONFIG=$HOME/pg15/bin/pg_config install -j$(nproc)

- name: Regression tests
id: regression_tests
run: |
make PG_CONFIG=$HOME/pg14/bin/pg_config installcheck
make PG_CONFIG=$HOME/pg15/bin/pg_config installcheck
continue-on-error: true

- name: Dump regression test errors
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/jdbc-driver.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ name: JDBC Driver Tests

on:
push:
branches: [ "master", "PG14" ]
branches: [ "master", "PG15" ]

pull_request:
branches: [ "master", "PG14" ]
branches: [ "master", "PG15" ]

jobs:
build:
Expand All @@ -28,14 +28,14 @@ jobs:
if [[ "$GITHUB_EVENT_NAME" == "push" ]]; then
if [[ "$GITHUB_REF" == "refs/heads/master" ]]; then
echo "TAG=latest" >> $GITHUB_ENV
elif [[ "$GITHUB_REF" == "refs/heads/PG14" ]]; then
echo "TAG=PG14_latest" >> $GITHUB_ENV
elif [[ "$GITHUB_REF" == "refs/heads/PG15" ]]; then
echo "TAG=PG15_latest" >> $GITHUB_ENV
fi
elif [[ "$GITHUB_EVENT_NAME" == "pull_request" ]]; then
if [[ "$GITHUB_BASE_REF" == "master" ]]; then
echo "TAG=latest" >> $GITHUB_ENV
elif [[ "$GITHUB_BASE_REF" == "PG14" ]]; then
echo "TAG=PG14_latest" >> $GITHUB_ENV
elif [[ "$GITHUB_BASE_REF" == "PG15" ]]; then
echo "TAG=PG15_latest" >> $GITHUB_ENV
fi
fi

Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/nodejs-driver.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ name: Nodejs Driver Tests

on:
push:
branches: [ "master", "PG14" ]
branches: [ "master", "PG15" ]

pull_request:
branches: [ "master", "PG14" ]
branches: [ "master", "PG15" ]

jobs:
build:
Expand All @@ -23,14 +23,14 @@ jobs:
if [[ "$GITHUB_EVENT_NAME" == "push" ]]; then
if [[ "$GITHUB_REF" == "refs/heads/master" ]]; then
echo "TAG=latest" >> $GITHUB_ENV
elif [[ "$GITHUB_REF" == "refs/heads/PG14" ]]; then
echo "TAG=PG14_latest" >> $GITHUB_ENV
elif [[ "$GITHUB_REF" == "refs/heads/PG15" ]]; then
echo "TAG=PG15_latest" >> $GITHUB_ENV
fi
elif [[ "$GITHUB_EVENT_NAME" == "pull_request" ]]; then
if [[ "$GITHUB_BASE_REF" == "master" ]]; then
echo "TAG=latest" >> $GITHUB_ENV
elif [[ "$GITHUB_BASE_REF" == "PG14" ]]; then
echo "TAG=PG14_latest" >> $GITHUB_ENV
elif [[ "$GITHUB_BASE_REF" == "PG15" ]]; then
echo "TAG=PG15_latest" >> $GITHUB_ENV
fi
fi

Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/python-driver.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ name: Python Driver Tests

on:
push:
branches: [ "master", "PG14" ]
branches: [ "master", "PG15" ]

pull_request:
branches: [ "master", "PG14" ]
branches: [ "master", "PG15" ]

jobs:
build:
Expand All @@ -23,14 +23,14 @@ jobs:
if [[ "$GITHUB_EVENT_NAME" == "push" ]]; then
if [[ "$GITHUB_REF" == "refs/heads/master" ]]; then
echo "TAG=latest" >> $GITHUB_ENV
elif [[ "$GITHUB_REF" == "refs/heads/PG14" ]]; then
echo "TAG=PG14_latest" >> $GITHUB_ENV
elif [[ "$GITHUB_REF" == "refs/heads/PG15" ]]; then
echo "TAG=PG15_latest" >> $GITHUB_ENV
fi
elif [[ "$GITHUB_EVENT_NAME" == "pull_request" ]]; then
if [[ "$GITHUB_BASE_REF" == "master" ]]; then
echo "TAG=latest" >> $GITHUB_ENV
elif [[ "$GITHUB_BASE_REF" == "PG14" ]]; then
echo "TAG=PG14_latest" >> $GITHUB_ENV
elif [[ "$GITHUB_BASE_REF" == "PG15" ]]; then
echo "TAG=PG15_latest" >> $GITHUB_ENV
fi
fi

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
</a>
&nbsp;
<a href="https://www.postgresql.org/docs/14/index.html">
<img src="https://img.shields.io/badge/Version-PostgreSQL 14-00008B?labelColor=gray&style=flat&link=https://www.postgresql.org/docs/14/index.html"/>
<img src="https://img.shields.io/badge/Version-Postgresql 15-00008B?labelColor=gray&style=flat&link=https://www.postgresql.org/docs/14/index.html"/>
</a>
&nbsp;
<a href="https://github.com/apache/age/issues">
Expand Down
4 changes: 2 additions & 2 deletions RELEASE
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
# specific language governing permissions and limitations
# under the License.

Release Notes for Apache AGE release 0.0.0 for PG 14
Release Notes for Apache AGE release 0.0.0 for PG 15

Apache AGE 0.0.0 - Release Notes

NOTE: This is an initial release of PG14. There are no upgrade
NOTE: This is an initial release of PG15. There are no upgrade
scripts to this release.

**************************************************************
Expand Down
4 changes: 2 additions & 2 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@
# limitations under the License.
#

FROM postgres:14
FROM postgres:15

RUN apt-get update \
&& apt-get install -y --no-install-recommends --no-install-suggests \
bison \
build-essential \
flex \
postgresql-server-dev-14 \
postgresql-server-dev-15 \
locales

ENV LANG=en_US.UTF-8
Expand Down
2 changes: 1 addition & 1 deletion docker/Dockerfile.dev
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ RUN apt-get install --assume-yes --no-install-recommends --no-install-suggests \
bison \
build-essential \
flex \
postgresql-server-dev-14 \
postgresql-server-dev-15 \
locales

ENV LANG=en_US.UTF-8
Expand Down
6 changes: 3 additions & 3 deletions regress/expected/expr.out
Original file line number Diff line number Diff line change
Expand Up @@ -2917,9 +2917,9 @@ $$) AS (toFloatList agtype);
SELECT * FROM cypher('expr', $$
RETURN toFloatList(['1.9432', 8.6222, '9.4111212', 344.22])
$$) AS (toFloatList agtype);
tofloatlist
-----------------------------------------
[1.9432, 8.6222, 9.4111212, 344.220001]
tofloatlist
-------------------------------------
[1.9432, 8.6222, 9.4111212, 344.22]
(1 row)

SELECT * FROM cypher('expr', $$
Expand Down
4 changes: 2 additions & 2 deletions src/backend/catalog/ag_catalog.c
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,8 @@ static bool is_age_drop(PlannedStmt *pstmt)

if (IsA(obj, String))
{
Value *val = (Value *)obj;
char *str = val->val.str;
String *val = (String *)obj;
char *str = val->sval;

if (!pg_strcasecmp(str, "age"))
return true;
Expand Down
4 changes: 2 additions & 2 deletions src/backend/commands/graph_commands.c
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ static Oid create_schema_for_graph(const Name graph_name)
integer = SystemTypeName("int4");
data_type = makeDefElem("as", (Node *)integer, -1);
maxvalue = makeDefElem("maxvalue", (Node *)makeInteger(LABEL_ID_MAX), -1);
cycle = makeDefElem("cycle", (Node *)makeInteger(true), -1);
cycle = makeDefElem("cycle", (Node *)makeBoolean(true), -1);
seq_stmt->options = list_make3(data_type, maxvalue, cycle);
seq_stmt->ownerId = InvalidOid;
seq_stmt->for_identity = false;
Expand Down Expand Up @@ -198,7 +198,7 @@ Datum drop_graph(PG_FUNCTION_ARGS)
static void drop_schema_for_graph(char *graph_name_str, const bool cascade)
{
DropStmt *drop_stmt;
Value *schema_name;
String *schema_name;
List *label_id_seq_name;
DropBehavior behavior;

Expand Down
12 changes: 6 additions & 6 deletions src/backend/commands/label_commands.c
Original file line number Diff line number Diff line change
Expand Up @@ -516,12 +516,12 @@ static FuncCall *build_id_default_func_expr(char *graph_name, char *label_name,
label_id_func_name = list_make2(makeString("ag_catalog"),
makeString("_label_id"));
graph_name_const = makeNode(A_Const);
graph_name_const->val.type = T_String;
graph_name_const->val.val.str = graph_name;
graph_name_const->val.sval.type = T_String;
graph_name_const->val.sval.sval = graph_name;
graph_name_const->location = -1;
label_name_const = makeNode(A_Const);
label_name_const->val.type = T_String;
label_name_const->val.val.str = label_name;
label_name_const->val.sval.type = T_String;
label_name_const->val.sval.sval = label_name;
label_name_const->location = -1;
label_id_func_args = list_make2(graph_name_const, label_name_const);
label_id_func = makeFuncCall(label_id_func_name, label_id_func_args, COERCE_SQL_SYNTAX, -1);
Expand All @@ -530,8 +530,8 @@ static FuncCall *build_id_default_func_expr(char *graph_name, char *label_name,
nextval_func_name = SystemFuncName("nextval");
qualified_seq_name = quote_qualified_identifier(schema_name, seq_name);
qualified_seq_name_const = makeNode(A_Const);
qualified_seq_name_const->val.type = T_String;
qualified_seq_name_const->val.val.str = qualified_seq_name;
qualified_seq_name_const->val.sval.type = T_String;
qualified_seq_name_const->val.sval.sval = qualified_seq_name;
qualified_seq_name_const->location = -1;
regclass_cast = makeNode(TypeCast);
regclass_cast->typeName = SystemTypeName("regclass");
Expand Down
4 changes: 2 additions & 2 deletions src/backend/executor/cypher_delete.c
Original file line number Diff line number Diff line change
Expand Up @@ -377,13 +377,13 @@ static void process_delete_list(CustomScanState *node)
ResultRelInfo *resultRelInfo;
HeapTuple heap_tuple;
char *label_name;
Value *pos;
Integer *pos;
int entity_position;

item = lfirst(lc);

pos = item->entity_position;
entity_position = pos->val.ival;
entity_position = pos->ival;

/* skip if the entity is null */
if (scanTupleSlot->tts_isnull[entity_position - 1])
Expand Down
2 changes: 1 addition & 1 deletion src/backend/parser/cypher_analyze.c
Original file line number Diff line number Diff line change
Expand Up @@ -798,7 +798,7 @@ static Query *analyze_cypher_and_coerce(List *stmt, RangeTblFunction *rtfunc,


addNSItemToQuery(pstate, pnsi, true, true, true);
query->targetList = expandNSItemAttrs(pstate, pnsi, 0, -1);
query->targetList = expandNSItemAttrs(pstate, pnsi, 0, true, -1);

markTargetListOrigins(pstate, query->targetList);

Expand Down
Loading