Skip to content

Instantly share code, notes, and snippets.

@morteza-mori
Last active September 4, 2018 10:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save morteza-mori/3975d4c7600fc95c2d7ee66c1fef6021 to your computer and use it in GitHub Desktop.
Save morteza-mori/3975d4c7600fc95c2d7ee66c1fef6021 to your computer and use it in GitHub Desktop.
psql copy tabale
@morteza-mori
Copy link
Author

morteza-mori commented Sep 4, 2018

psql

[http://www.postgresqltutorial.com/postgresql-copy-table/]

CREATE TABLE contact_backupAS TABLE contacts;

ALTER TABLE user_attrs DISABLE TRIGGER update_user_nearest_exp_date_trigger ;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment