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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

I need assistance writing a custom query against Confluence Postgres instance

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

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.

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
Community showcase
Published in Confluence

Announcing Team Calendars in Confluence Data Center

Hi Community! We're thrilled to share that Team Calendars for Confluence is now a built-in feature for Confluence Data Center releases 7.11 and beyond.  A long time favorite,  Team Cale...

125 views 0 3
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you