# Orthanc to use PostgreSQL

**URL:** https://discourse.orthanc-server.org/t/orthanc-to-use-postgresql/935
**Category:** Google Groups archive
**Created:** [March 21, 2018, 10:37pm UTC](https://discourse.orthanc-server.org/t/orthanc-to-use-postgresql/935 "2018-03-21T22:37:05Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Brandon\_Lee](https://discourse.orthanc-server.org/letter_avatar_proxy/v4/letter/b/c5a1d2/32.png) [@Brandon\_Lee](https://discourse.orthanc-server.org/u/Brandon_Lee)
#### Post date: [March 21, 2018, 10:37pm UTC](https://discourse.orthanc-server.org/t/orthanc-to-use-postgresql/935/1 "2018-03-21T22:37:05Z")

</div>

Can someone help me get a clean install of Orthanc to use PostgreSQL

I have both clean install on windows server 2012 R2

PostgreSQL is in D:\OrthancDB on localhost (same as Orthanc)  
not sure what username is as it did not ask to have this setup. I have read that it is postgres by default

Any help is appreciated.

---

<div class="post-metadata">

### Author: ![bdearlove](https://discourse.orthanc-server.org/user_avatar/discourse.orthanc-server.org/bdearlove/32/1661_2.png) [@bdearlove](https://discourse.orthanc-server.org/u/bdearlove)
#### Post date: [March 22, 2018, 9:11am UTC](https://discourse.orthanc-server.org/t/orthanc-to-use-postgresql/935/2 "2018-03-22T09:11:09Z")

</div>

Here is a link to the documentation. Check under usage. If you installed the windows installer the plugin is included. To create the database you can use a windows or Mac PostresSQL client to connect and create and view the database.  
[http://book.orthanc-server.com/plugins/postgresql.html](http://book.orthanc-server.com/plugins/postgresql.html)
