kyleu / boilerplay

Using the latest technology in the Scala ecosystem, Boilerplay is a reactive web application built on Play Framework, ScalaJS, Silhouette, Sangria/GraphQL, and PostgreSQL. It provides a good starting point for whatever you want to build.

Home Page:https://kyleu.github.io/boilerplay

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

create extension hstore needs superuser

5at opened this issue · comments

After following instructions in "Getting Started" to create database and user the AuditSchema.sql fails as the "create extension if not exists hstore;" statement requires superuser access (version 9.5.9 of postgresql).

Thanks for finding this, I added the hstore column recently, and usually run superuser locally.

Hmm, looks like postgres requires superuser to allow the extension. I use an hstore for the audit stuff, I could update the documentation to require a superuser, but that seems like overreaching. It's only for the tags, I may just pull that out for now.

Hi, what is the best solution for this? For the moment i've altered the role to be superuser.

The alternative would be creating the hstore extension with a superuser, then removing the extension creation from ./ddl. Hstores are just too useful to give up :)