Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 19:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Connecting jira to postgresql database with custom schema

vishwas November 1, 2019

Hello All,

Can we connect jira software to postgresql database other than public schema ?

If so how the schema should be configured for privileges so that it connects to jira application.

 

Thanks & Regards,

Vishwas

2 answers

2 accepted

0 votes
Answer accepted
culyzhao
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 21, 2019

I also have this problem, and did some study on it, there are serveral ways to solve it.

1. Use @Fadoua metioned method, set search_path.

2. Modify  dbconfig.xml, add currentSchema paremeter to jdbc url:

<url>jdbc:postgresql://ip:5432/yourdb?currentSchema=jira</url>

3. Create the schema same as your jira db login user.

In postgresql, show search_path command will show the search_path settings, default result is "$user", public. It means default schema is same as current logon username. 

0 votes
Answer accepted
Fadoua
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
November 1, 2019

@vishwas 

Yes you can. In fact I had issues 2 days ago configuring the Postgres to Jira because I was using the public schema.

ALTER DATABASE <database name> SET search_path TO <your schema>,public;

Run the command above after adding your schema.

Best,

Fadoua

vishwas November 2, 2019

@Fadoua 

Thanks for the help

It helped me after setting search_path

Thanks & Regards,

Vishwas

Like Fadoua likes this
Fadoua
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
November 4, 2019

Thank you for accepting my answer @vishwas !

Suggest an answer

Log in or Sign up to answer