|
2 | 2 | * PostGraph |
3 | 3 | * Copyright (C) 2023 by PostGraph |
4 | 4 | * |
5 | | - * Licensed to the Apache Software Foundation (ASF) under one |
6 | | - * or more contributor license agreements. See the NOTICE file |
7 | | - * distributed with this work for additional information |
8 | | - * regarding copyright ownership. The ASF licenses this file |
9 | | - * to you under the Apache License, Version 2.0 (the |
10 | | - * "License"); you may not use this file except in compliance |
11 | | - * with the License. You may obtain a copy of the License at |
12 | | - * |
13 | | - * http://www.apache.org/licenses/LICENSE-2.0 |
| 5 | + * This program is free software: you can redistribute it and/or modify |
| 6 | + * it under the terms of the GNU General Public License as published by |
| 7 | + * the Free Software Foundation, either version 3 of the License, or |
| 8 | + * (at your option) any later version. |
14 | 9 | * |
15 | | - * Unless required by applicable law or agreed to in writing, |
16 | | - * software distributed under the License is distributed on an |
17 | | - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
18 | | - * KIND, either express or implied. See the License for the |
19 | | - * specific language governing permissions and limitations |
20 | | - * under the License. |
| 10 | + * This program is distributed in the hope that it will be useful, |
| 11 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 | + * GNU General Public License for more details. |
21 | 14 | * |
22 | 15 | * Portions Copyright (c) 2020-2023, Apache Software Foundation |
23 | 16 | * Portions Copyright (c) 2019-2020, Bitnine Global |
@@ -64,7 +57,8 @@ CREATE TABLE ag_label ( |
64 | 57 | graph oid NOT NULL, |
65 | 58 | id label_id, |
66 | 59 | kind label_kind, |
67 | | - relation regclass NOT NULL, |
| 60 | + relation regclass NOT NULL, |
| 61 | + vertex_adjlist regclass NULL, |
68 | 62 | label_path public.ltree NULL, |
69 | 63 | CONSTRAINT fk_graph_oid FOREIGN KEY(graph) REFERENCES ag_graph(graphid) |
70 | 64 | ); |
@@ -103,13 +97,13 @@ USING btree (pid, graph_oid); |
103 | 97 | ------------------------------------- |
104 | 98 | -- Table AM interface functions |
105 | 99 | ------------------------------------- |
106 | | -CREATE FUNCTION vertex_tableam_handler(internal) |
| 100 | +CREATE FUNCTION vertex_adjlist_tableam_handler(internal) |
107 | 101 | RETURNS table_am_handler |
108 | 102 | AS 'MODULE_PATHNAME' |
109 | 103 | LANGUAGE C STRICT; |
110 | 104 |
|
111 | | -CREATE ACCESS METHOD vertex TYPE TABLE |
112 | | -HANDLER vertex_tableam_handler; |
| 105 | +CREATE ACCESS METHOD vertex_adjlist TYPE TABLE |
| 106 | +HANDLER vertex_adjlist_tableam_handler; |
113 | 107 |
|
114 | 108 | -- |
115 | 109 | -- catalog lookup functions |
|
0 commit comments