1 -- Copyright (C) The Arvados Authors. All rights reserved.
3 -- SPDX-License-Identifier: AGPL-3.0
5 CREATE TEMPORARY VIEW ancestor_view AS
7 ancestor (uuid, ancestor_uuid) AS (
8 SELECT groups.uuid::varchar(32) AS uuid,
9 groups.owner_uuid::varchar(32) AS ancestor_uuid
12 SELECT ancestor.uuid::varchar(32) AS uuid,
13 groups.owner_uuid::varchar(32) AS ancestor_uuid
16 ON groups.uuid = ancestor.ancestor_uuid
18 SELECT * FROM ancestor;