Skip to content
Advertisement

Include parameters in posgresql assert message

Is there a way to include parameters in PostgreSQL ASSERT messages.

Example:

This works:

This assert:

show an error message as it should:

but the variable do not replace the % in the text.

Advertisement

Answer

Use FORMAT:

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement