Skip to content

Generate debug symbols with CFLAGS=-g3 #1203

Closed

Description

@samrose

Chore

Over here #1195 (comment) @pashkinelfe suggested the following

I'd drop --enable-debug and use CFLAGS=-g3 instead like in fdaee4b

As per
https://wiki.postgresql.org/wiki/Developer_FAQ --enable-debug will also set less speed-optimal optimization i.e. -Og CFLAGS (and also -fno-omit-frame-pointer) that could decrease performance compared to default -02. I think for production system -g3 is better

So this is an issue to create PR that tries to do this + making sure that the new approach is compatible with separateDebugInfo = true; in our postgresql package

Activity

  1. self-assigned this
    on Sep 13, 2024
  2. brainrake commented on Oct 10, 2026

    @brainrake
    Collaborator

    #2537 this enables more debug generation. Closing issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions