Pandastack Documentation
  • Welcome
  • Getting Started
    • Quickstart
      • Getting Started
    • Projects
      • Static Website
        • Configure your static website
          • Pre-defined ENV for static websites
      • Conatinered Website
        • How to configure nodejs project
        • How to Configure Python projects
        • How to Configure GO project
        • Docker runtime Projects
        • Private Connection with database.
        • Override default ENV
    • Databases
      • MySQL
      • PostgreSQL
      • Redis
      • MongoDB
      • TimeScaleDB
    • Monitoring
      • Uptime Check
      • SSL monitoring
      • Monitors pricing
    • Analytics
    • SSO
      • Google
      • Azure
    • Managed Apps
      • Wordpres
      • Directus
      • Strapi
      • Consul
      • Jenkins
    • PandaEdge
      • Deploy a nodejs function
      • Deploy a python function
      • Panda Edge pricing
Powered by GitBook
On this page
  • Deployment Steps
  • Instance Types
  • Features
  • Monitoring
  • Backup Management
  • Connection Information
  • Best Practices
  • Troubleshooting
  1. Getting Started
  2. Databases

PostgreSQL

PostgreSQL is a powerful, open-source object-relational database system known for reliability, feature robustness, and performance. It's ideal for complex queries and custom procedures.

Deployment Steps

  1. From the dashboard, click "Create New" and select "PostgreSQL"

  2. Configure your database:

    • Name: Enter a unique identifier for your database

    • Description: Add a description to help identify the database purpose

    • Version: Select your preferred PostgreSQL version

    • Username/Password: Set credentials for database access

    • Visibility: Choose between public or private access

    • DB Name: Specify the name for your primary database

    • Backup: Enable/disable automated backups

Instance Types

Choose the instance type that best fits your workload:

  • Free Tier

    • Perfect for development and testing

    • Limited resources but no cost

    • Run 1 database for free

  • Standard

    • Balanced resources for general use

    • Recommended for production workloads

  • C1/C2 Compute

    • Optimized for compute-intensive workloads

    • Ideal for complex queries and analytics

  • M1/M2 Memory

    • Optimized for memory-intensive workloads

    • Perfect for large datasets and caching

Features

  1. ACID Compliance

    • Atomicity

    • Consistency

    • Isolation

    • Durability

  2. Advanced Features

    • Complex queries

    • Custom functions

    • Stored procedures

    • Triggers

    • Views

    • Materialized views

    • Full-text search

Monitoring

Monitor your PostgreSQL instance through:

  1. Logs Tab

    • Real-time log streaming

    • Search functionality

    • Error highlighting

    • Timestamp-based filtering

  2. Metrics

    • CPU usage

    • Memory utilization

    • Disk usage

    • Network transfer

    • Query performance

    • Connection count

Backup Management

Manage your database backups:

  1. Automated Backups

    • Enable/disable automated backups

    • Set backup window

    • Configure retention period

    • Point-in-time recovery

  2. Backup Tab

    • View backup history

    • Initiate manual backups

    • Restore from backup

    • Download backup files

Connection Information

After deployment, you'll receive:

  • Connection URL

  • Authentication credentials

  • Port information

  • SSL/TLS certificates (if applicable)

Example connection string:

postgresql://username:password@hostname:port/database

Best Practices

  1. Security

    • Use private visibility when possible

    • Implement strong passwords

    • Regularly rotate credentials

    • Limit network access

    • Use SSL/TLS encryption

  2. Performance

    • Monitor resource utilization

    • Choose appropriate instance type

    • Regular VACUUM operations

    • Proper indexing strategy

    • Connection pooling

  3. Backup

    • Enable automated backups

    • Test restore procedures

    • Keep backup window during low-traffic periods

    • Maintain backup copies

    • Verify WAL archiving

Troubleshooting

Common issues and solutions:

  1. Connection Issues

    • Verify network access

    • Check credentials

    • Confirm port accessibility

    • Validate SSL/TLS settings

    • Review pg_hba.conf

  2. Performance Problems

    • Monitor resource metrics

    • Check slow queries

    • Review index usage

    • Analyze query plans

    • Check for bloat

  3. Backup Failures

    • Verify storage space

    • Check backup user permissions

    • Review backup logs

    • Validate backup configuration

    • Check WAL settings

PreviousMySQLNextRedis

Last updated 3 months ago