Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Support
  3. How to debug Postgresql used by custom app

How to debug Postgresql used by custom app

Scheduled Pinned Locked Moved Solved Support
postgresql
4 Posts 2 Posters 607 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • ChristopherMagC Offline
    ChristopherMagC Offline
    ChristopherMag
    wrote on last edited by girish
    #1

    I have a custom application that is using the postgresql addon.

    In troubleshooting issues that arise I would like to be able to debug functions I have created in postgresql.

    I have installed pgAdmin 4 and have used the instructions here to connect to the database.

    When I try to debug a function I get the following error "The debugger plugin is not enabled. Please create the pldbgapi extension in this database."

    What steps can I take to enable the pldbgapi extension so that I can debug postgresql functions that are used by my cloudron app?

    1 Reply Last reply
    1
    • nebulonN Offline
      nebulonN Offline
      nebulon
      Staff
      wrote on last edited by
      #2

      I don't think it makes sense to support this. Cloudron is more of a deployment platform rather than development platform.

      Debugging such things is probably be better done locally or in an environment which is set up for development.

      1 Reply Last reply
      0
      • girishG girish marked this topic as a question on
      • ChristopherMagC Offline
        ChristopherMagC Offline
        ChristopherMag
        wrote on last edited by
        #3

        Gotcha, given that the version of postgresql used in the addon is defined by the cloudron platform what would be the easiest way to run the same docker container version of postgresql used by the cloudron platform locally on my development system?

        1 Reply Last reply
        0
        • nebulonN Offline
          nebulonN Offline
          nebulon
          Staff
          wrote on last edited by
          #4

          The current addon uses 14.9 so I guess you could run the corresponding image from https://hub.docker.com/_/postgres

          1 Reply Last reply
          0
          • girishG girish has marked this topic as solved on
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Bookmarks
          • Search