-
Notifications
You must be signed in to change notification settings - Fork 1
/
notas.txt
28 lines (21 loc) · 918 Bytes
/
notas.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
Cuando ejecutemos creation.sql hay que hacerlo desde el usuario postgres.
COSAS QUE HAY QUE HACER:
1. Poner todas las interfaces igual.
2. Hacer un script para crear la base de datos e insertar tuplas.
3. Hacer la página de inicio y poner dos botones: uno para crear la db y otra para insertar tuplas
4. Poner muchas sentencias de inserción de tuplas.
sudo -u postgres psql ---> conecta con el usuario postgres sin perder el directorio actual
para manejar excepciones: usar conn.rollback()
listar triggers en psql:
select event_object_schema as table_schema,
event_object_table as table_name,
trigger_schema,
trigger_name,
string_agg(event_manipulation, ',') as event,
action_timing as activation,
action_condition as condition,
action_statement as definition
from information_schema.triggers
group by 1,2,3,4,6,7,8
order by table_schema,
table_name;