MatheusFarias03 opened a new issue, #1139:
URL: https://github.com/apache/age/issues/1139
Hi! I've just written a function for AGE, compiled and installed the
extension, dropped it and created it again. But when I call the function, it
says that it does not exist. Am I doing something wrong? What could be a
solution for this?
I've declared it as the following in the `age--1.3.0.sql` file:
```sql
CREATE FUNCTION ag_catalog.age_adjacency_matrix(graph_name name)
RETURNS void
LANGUAGE c
STABLE
PARALLEL SAFE;
AS 'MODULE_PATHNAME';
```
and defined as the following in the :
```c
PG_FUNCTION_INFO_V1(age_adjacency_matrix);
/*
* Function for returning the graph's adjacency matrix. This adjacency matrix
* stores the number of edges between two nodes. The complexity to check if an
* edge exists within an adjacency matrix is O(1), while the space complexity
* is O(v^2) with v = number of vertices.
*/
Datum age_adjacency_matrix(PG_FUNCTION_ARGS)
{
// Code goes here...
PG_RETURN_VOID();
}
```
Example of query:
```sql
SELECT ag_catalog.age_adjacency_matrix();
ERROR: function ag_catalog.age_adjacency_matrix() does not exist
LINE 1: SELECT ag_catalog.age_adjacency_matrix();
^
HINT: No function matches the given name and argument types. You might need
to add explicit type casts.
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]