neondatabase / neon

Neon: Serverless Postgres. We separated storage and compute to offer autoscaling, code-like database branching, and scale to zero.
https://neon.tech
Apache License 2.0
13.3k stars 375 forks source link

Improve compute.log readability #4430

Open lubennikovaav opened 1 year ago

lubennikovaav commented 1 year ago

Now we merge compute_ctl and postrgesql logs into one stream.

in both prod and pytest environments

It is sometimes convenient to have them in chronological order - if they were separate logs you'd need to open both logs and compare the timestamps.

But this complicates debugging postgresql issues. Also this blocks issues about showing postgresql logs to user such as https://github.com/neondatabase/neon/pull/4075

Let's discuss possible improvements

cc: @MMeent, @hlinnaka

Omrigan commented 5 months ago

See also https://github.com/neondatabase/autoscaling/issues/578