retrait de pganon

This commit is contained in:
2025-09-12 22:14:49 +02:00
parent 60553e288e
commit 924ace158c
3 changed files with 16 additions and 34 deletions

View File

@@ -4,7 +4,6 @@ create extension if not exists postgis;
create extension if not exists pgrouting;
create extension if not exists vector;
create extension if not exists pgcrypto;
create extension if not exists pganon;
create table adherent (
id int primary key,
@@ -52,7 +51,10 @@ create table fournisseur (
fournisseur text not null
);
create table region
create table region (
id int primary key,
region text not null
);
insert into region values
(1, 'Est'), (2, 'Ouest');

View File

@@ -1,8 +1,9 @@
ALTER TABLE famille
ADD gauche int, droite int;
alter table famille
add column gauche int,
add column droite int;
-- fonction auxiliaire récursive : reçoit le compteur 'n', retourne le compteur mis à jour
CREATE OR REPLACE FUNCTION set_bounds(p_code INT, n INT)
CREATE OR REPLACE FUNCTION set_bounds(p_code text, n INT)
RETURNS INT AS $$
DECLARE
child RECORD;