|
| 1 | +/* |
| 2 | + * Licensed to the Apache Software Foundation (ASF) under one |
| 3 | + * or more contributor license agreements. See the NOTICE file |
| 4 | + * distributed with this work for additional information |
| 5 | + * regarding copyright ownership. The ASF licenses this file |
| 6 | + * to you under the Apache License, Version 2.0 (the |
| 7 | + * "License"); you may not use this file except in compliance |
| 8 | + * with the License. You may obtain a copy of the License at |
| 9 | + * |
| 10 | + * http://www.apache.org/licenses/LICENSE-2.0 |
| 11 | + * |
| 12 | + * Unless required by applicable law or agreed to in writing, |
| 13 | + * software distributed under the License is distributed on an |
| 14 | + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| 15 | + * KIND, either express or implied. See the License for the |
| 16 | + * specific language governing permissions and limitations |
| 17 | + * under the License. |
| 18 | + */ |
| 19 | + |
| 20 | +-- complain if script is sourced in psql, rather than via CREATE EXTENSION |
| 21 | +\echo Use "ALTER EXTENSION age UPDATE TO '1.4.0'" to load this file. \quit |
| 22 | + |
| 23 | +CREATE FUNCTION ag_catalog.age_tobooleanlist(variadic "any") |
| 24 | +RETURNS agtype |
| 25 | +LANGUAGE c |
| 26 | +IMMUTABLE |
| 27 | +RETURNS NULL ON NULL INPUT |
| 28 | +PARALLEL SAFE |
| 29 | +AS 'MODULE_PATHNAME'; |
| 30 | + |
| 31 | +CREATE FUNCTION ag_catalog.age_tofloatlist(variadic "any") |
| 32 | +RETURNS agtype |
| 33 | +LANGUAGE c |
| 34 | +IMMUTABLE |
| 35 | +RETURNS NULL ON NULL INPUT |
| 36 | +PARALLEL SAFE |
| 37 | +AS 'MODULE_PATHNAME'; |
| 38 | + |
| 39 | +CREATE FUNCTION ag_catalog.age_tointegerlist(variadic "any") |
| 40 | +RETURNS agtype |
| 41 | +LANGUAGE c |
| 42 | +IMMUTABLE |
| 43 | +RETURNS NULL ON NULL INPUT |
| 44 | +PARALLEL SAFE |
| 45 | +AS 'MODULE_PATHNAME'; |
| 46 | + |
| 47 | +CREATE FUNCTION ag_catalog.age_pi() |
| 48 | +RETURNS agtype |
| 49 | +LANGUAGE c |
| 50 | +IMMUTABLE |
| 51 | +PARALLEL SAFE |
| 52 | +AS 'MODULE_PATHNAME'; |
| 53 | + |
| 54 | +CREATE FUNCTION ag_catalog.age_rand() |
| 55 | +RETURNS agtype |
| 56 | +LANGUAGE c |
| 57 | +PARALLEL SAFE |
| 58 | +AS 'MODULE_PATHNAME'; |
| 59 | + |
| 60 | +CREATE FUNCTION ag_catalog.agtype_typecast_bool(variadic "any") |
| 61 | +RETURNS agtype |
| 62 | +LANGUAGE c |
| 63 | +IMMUTABLE |
| 64 | +PARALLEL SAFE |
| 65 | +AS 'MODULE_PATHNAME'; |
| 66 | + |
| 67 | +ALTER FUNCTION ag_catalog._label_name IMMUTABLE; |
| 68 | + |
| 69 | +ALTER FUNCTION ag_catalog._agtype_build_vertex IMMUTABLE; |
| 70 | + |
| 71 | +ALTER FUNCTION ag_catalog._agtype_build_edge IMMUTABLE; |
| 72 | + |
| 73 | +CREATE OR REPLACE FUNCTION ag_catalog.agtype_volatile_wrapper("any") |
| 74 | +RETURNS agtype |
| 75 | +LANGUAGE c |
| 76 | +VOLATILE |
| 77 | +CALLED ON NULL INPUT |
| 78 | +PARALLEL SAFE |
| 79 | +AS 'MODULE_PATHNAME'; |
| 80 | + |
| 81 | +-- |
| 82 | +-- End |
| 83 | +-- |
0 commit comments