You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the demo, you showed how passing an empty string when expecting one char, resulted in an error that crashed PostgreSQL, albeit with a nice user-friendly error message from Zig, which is of course much better than the segfault C would cause.
However, crashing a production PostgreSQL database just because there is a bug in a Zig extension database function, might not always be desirable.
If possible, it would be nice with a setting that allows logging the error and just returning NULL instead of crashing.
The text was updated successfully, but these errors were encountered:
Thanks for great work and a nice demo on YouTube.
In the demo, you showed how passing an empty string when expecting one char, resulted in an error that crashed PostgreSQL, albeit with a nice user-friendly error message from Zig, which is of course much better than the segfault C would cause.
However, crashing a production PostgreSQL database just because there is a bug in a Zig extension database function, might not always be desirable.
If possible, it would be nice with a setting that allows logging the error and just returning NULL instead of crashing.
The text was updated successfully, but these errors were encountered: