This is an automated email from the ASF dual-hosted git repository.

jgemignani pushed a commit to branch PROPOSAL_API_Server
in repository https://gitbox.apache.org/repos/asf/age.git


The following commit(s) were added to refs/heads/PROPOSAL_API_Server by this 
push:
     new dae20502 AGE Code Cleanup (#1813)
dae20502 is described below

commit dae205025ead04d854a6e5db890b32f69d574d90
Author: Morpheus <[email protected]>
AuthorDate: Wed May 1 07:01:16 2024 +0900

    AGE Code Cleanup (#1813)
    
    AGE Code Cleanup
---
 .gitignore            |  3 ---
 Makefile              | 11 -----------
 agensgraph--0.0.0.sql |  7 -------
 agensgraph.c          | 20 --------------------
 agensgraph.control    |  4 ----
 expected/cypher.out   |  8 --------
 sql/cypher.sql        |  6 ------
 7 files changed, 59 deletions(-)

diff --git a/.gitignore b/.gitignore
deleted file mode 100644
index cd3e0e15..00000000
--- a/.gitignore
+++ /dev/null
@@ -1,3 +0,0 @@
-/results/
-*.o
-*.so
diff --git a/Makefile b/Makefile
deleted file mode 100644
index 9942b87d..00000000
--- a/Makefile
+++ /dev/null
@@ -1,11 +0,0 @@
-MODULES = agensgraph
-
-EXTENSION = agensgraph
-
-DATA = agensgraph--0.0.0.sql
-
-REGRESS = cypher
-
-PG_CONFIG = pg_config
-PGXS := $(shell $(PG_CONFIG) --pgxs)
-include $(PGXS)
diff --git a/agensgraph--0.0.0.sql b/agensgraph--0.0.0.sql
deleted file mode 100644
index 4ccec0e3..00000000
--- a/agensgraph--0.0.0.sql
+++ /dev/null
@@ -1,7 +0,0 @@
--- complain if script is sourced in psql, rather than via CREATE EXTENSION
-\echo Use "CREATE EXTENSION agensgraph" to load this file. \quit
-
-CREATE FUNCTION "cypher"(text)
-RETURNS SETOF "record"
-LANGUAGE "c"
-AS 'MODULE_PATHNAME';
diff --git a/agensgraph.c b/agensgraph.c
deleted file mode 100644
index 7fde4a7c..00000000
--- a/agensgraph.c
+++ /dev/null
@@ -1,20 +0,0 @@
-#include "postgres.h"
-
-#include "fmgr.h"
-#include "utils/builtins.h"
-
-PG_MODULE_MAGIC;
-
-PG_FUNCTION_INFO_V1(cypher);
-
-Datum cypher(PG_FUNCTION_ARGS)
-{
-    const char *s;
-
-    s = PG_ARGISNULL(0) ? "NULL" : text_to_cstring(PG_GETARG_TEXT_PP(0));
-
-    ereport(ERROR, (errmsg_internal("unhandled cypher(text) function call"),
-                    errdetail_internal("%s", s)));
-
-    PG_RETURN_NULL();
-}
diff --git a/agensgraph.control b/agensgraph.control
deleted file mode 100644
index 6111b55d..00000000
--- a/agensgraph.control
+++ /dev/null
@@ -1,4 +0,0 @@
-default_version = '0.0.0'
-module_pathname = '$libdir/agensgraph'
-
-schema = 'ag_catalog'
diff --git a/expected/cypher.out b/expected/cypher.out
deleted file mode 100644
index fce3ab5a..00000000
--- a/expected/cypher.out
+++ /dev/null
@@ -1,8 +0,0 @@
-CREATE EXTENSION agensgraph;
-SET search_path TO ag_catalog;
-SELECT * FROM cypher(NULL) AS r(c text);
-ERROR:  unhandled cypher(text) function call
-DETAIL:  NULL
-SELECT * FROM cypher($$RETURN 0$$) AS r(c text);
-ERROR:  unhandled cypher(text) function call
-DETAIL:  RETURN 0
diff --git a/sql/cypher.sql b/sql/cypher.sql
deleted file mode 100644
index 944e1f59..00000000
--- a/sql/cypher.sql
+++ /dev/null
@@ -1,6 +0,0 @@
-CREATE EXTENSION agensgraph;
-
-SET search_path TO ag_catalog;
-
-SELECT * FROM cypher(NULL) AS r(c text);
-SELECT * FROM cypher($$RETURN 0$$) AS r(c text);

Reply via email to