Skip to content

Instantly share code, notes, and snippets.

Avatar

Daniel Blanco Danisan

View GitHub Profile
@gingerlime
gingerlime / change_db_owner.sh
Created Apr 24, 2012
Postgresql - Changing ownership on all tables
View change_db_owner.sh
#!/bin/bash
usage()
{
cat << EOF
usage: $0 options
This script set ownership for all table, sequence and views for a given database
Credit: Based on http://stackoverflow.com/a/2686185/305019 by Alex Soto