Skip to content

Instantly share code, notes, and snippets.

View fromneo's full-sized avatar

Lucas fromneo

View GitHub Profile
@fromneo
fromneo / save_restore_dependencies.sql
Created May 5, 2016 13:13 — forked from mateuszwenus/save_restore_dependencies.sql
PostgreSQL: How to handle table and view dependencies
create table deps_saved_ddl
(
deps_id serial primary key,
deps_view_schema varchar(255),
deps_view_name varchar(255),
deps_ddl_to_run text
);
create or replace function deps_save_and_drop_dependencies(p_view_schema varchar, p_view_name varchar) returns void as
$$

Keybase proof

I hereby claim:

  • I am fromneo on github.
  • I am lucasneo (https://keybase.io/lucasneo) on keybase.
  • I have a public key ASAiWOmqq45WKl62HO-XqlLa7az88Rn98Cl8o-Zd314l8go

To claim this, I am signing this object: