Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

I need assistance writing a custom query against Confluence Postgres instance

Drew McClure
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!
January 5, 2021

I am not a DBA but have been tasked with exporting some site directory (over 250 of them) information to .csv.  I can log into my PostgreSQL instance and have some cookie-cutter queries but need some specific reports to be generated, namely:

Space Name, Space Title, Author, Created on, Last modified on, Last modified by and the TinyLink

Any assistance to ease with this task would be great.

1 answer

1 accepted

0 votes
Answer accepted
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 5, 2021

This is a good reason to point out that you should not be trying to read the database.  It's absolutley not designed for reporting or data extracts, and it's the worst possible way to get information out of an Atlassian system. 

You have run into one of the reasons I say this - it doesn't have some of the data you are looking for at all, some of it is taken from the index and some is calculated when it is requested.

Use the REST API instead, it can give you all of that in a single simple hit rather than a pile of recursive joins and calculations.

Drew McClure
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!
January 27, 2021

This was very helpful. I also found a website here that includes some other useful information.  https://bobswift.atlassian.net/wiki/spaces/info/overview?mode=global

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events