Skip to content

Instantly share code, notes, and snippets.

@killerswan
Created December 2, 2015 01:35
Show Gist options
  • Save killerswan/c2769366af3878e17f6b to your computer and use it in GitHub Desktop.
Save killerswan/c2769366af3878e17f6b to your computer and use it in GitHub Desktop.
/*
* $ pg_dump --host=localhost --username=xyz db > db-2015-12-01.backup
* $ psql --host=localhost --username=xyz db
*
* http://www.postgresql.org/docs/8.3/static/functions-matching.html
*/
\dt
select * from ci_parameters where ci_parameters.key='tag' and ci_parameters.value ~ 'signed-';;
update ci_parameters set value = regexp_replace(value, 'signed-', 'signed_') where value ~ 'signed-';;
\q
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment