Enable slow query log - Deepstash
Enable slow query log

Enable slow query log

Set the followings settings in /etc/postgresql/15/main/postgresql.conf:

"Error Reporting and Logging"

  • logging_collector = on
  • log_min_duration_statement = 1s
  • log_lock_waits = on

"Run-time Statistics"

  • track_activity_query_size = 8192

4

40 reads

CURATED FROM

IDEAS CURATED BY

ocpodariu

Alt account of @ocp. I use it to stash ideas about software engineering

Similar ideas to Enable slow query log

Arrive Early on the First Day

Arrive Early on the First Day

Reporting to work late on the first day or during the first few weeks can leave the wrong impression. 

To be punctual, you can find out about the reporting time and work towards getting to the workplace at least 15 minutes earlier. Take into account factors such as ongoing cons...

Middleware

Middleware

Middleware gives you the possibility to run code before a request is complete and based on the incoming request, you can rewrite, redirect, add headers or even stream HTML. It can be used for anything that shares logic for a set of pages, including:

    10. Start a log

    • It’s important that you write down everything you do and eat and make yourself accountable for every action or non-action during your fitness journey.
    • Record absolutely everything including the small things like when you picked stairs over elevator – these are the small victories tha...

    Read & Learn

    20x Faster

    without
    deepstash

    with
    deepstash

    with

    deepstash

    Personalized microlearning

    100+ Learning Journeys

    Access to 200,000+ ideas

    Access to the mobile app

    Unlimited idea saving

    Unlimited history

    Unlimited listening to ideas

    Downloading & offline access

    Supercharge your mind with one idea per day

    Enter your email and spend 1 minute every day to learn something new.

    Email

    I agree to receive email updates