Skip to content

Instantly share code, notes, and snippets.

View dmexe's full-sized avatar

Dmitry Galinsky dmexe

View GitHub Profile
@dmexe
dmexe / pg_change_db_owner.sh
Created September 8, 2016 16:50 — forked from jirutka/pg_change_db_owner.sh
Some convenient scripts to manage ownerships and privileges in PostgreSQL.
#!/bin/bash
#
# The MIT License
#
# Copyright 2014 Jakub Jirutka <jakub@jirutka.cz>.
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell