Skip to content

pg_ctl spawns visible CMD window on Windows 11 (expected hidden) #196

Closed
@mushonnip

Description

@mushonnip

Describe the bug

When using postgresql-embedded in a Tauri application on Windows 11, launching the embedded PostgreSQL causes a visible CMD pg_ctl.exe window to flash.

This breaks the clean user experience expected from a GUI app in production.

On Linux, the behavior is correct: PostgreSQL starts silently in the background.

Expected behavior

PostgreSQL should start silently, with no visible command prompt or just a tray icon.

Environment

OS: Windows 11
postgresql-embedded version: 0.18.5
PostgreSQL version: 16.9
Rust: 1.87.0
Tauri: 2.5.1

Screenshot

Image

Metadata

Metadata

Assignees

No one assigned

    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