1
1
mirror of https://github.com/kanaka/mal.git synced 2024-11-13 11:23:59 +03:00
mal/plpgsql/init.sql
Joel Martin 494792abe4 plpgsql: schema namespaces. refactor IO.
- move each file to a schema namespace. Don't recreate DB, just the
  schemas. This is much faster and avoids the error about user still
  using the DB when recreating the DB.
- combine RUN and MAIN_LOOP into MAIN routine.
- add open column to streams table
- close stream 1 in MAIN
2016-05-02 23:37:16 -05:00

14 lines
329 B
SQL
Executable File

-- ---------------------------------------------------------
-- init.sql
-- Drop pre-existing schemas
DROP SCHEMA IF EXISTS io, types, reader, printer, envs, core, mal CASCADE;
-- Drop and recreate extensions
DROP EXTENSION IF EXISTS hstore;
CREATE EXTENSION hstore;
DROP EXTENSION IF EXISTS dblink;
CREATE EXTENSION dblink;