Question

How do I access database as a superuser from app platform?

I don’t see anywhere in the settings for my database set up in app platform to manage the users, or access the password for doadmin to access superuser features like enabling Telemetry in the timescaledb extension. How would I run this ALTER DATABASE "database" SET timescaledb.telemetry_level = 'basic'

Show comments

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Hello,

Database values are not available during build time but are available at runtime. The default environment variables are as follows:

  • ${HOSTNAME}: Fully qualified hostname to the database.
  • ${PORT}: Port to the database.
  • ${USERNAME}: Username for the database.
  • ${PASSWORD}: Password for the database user.

Alternatively, if you are using an existing cluster, you can also pass your details as different environment variables as described here:

https://docs.digitalocean.com/products/app-platform/how-to/use-environment-variables/

Let me know how it goes.

Best,

Bobby