How to pass a record to a PL/pgSQL function?

前端 未结 3 624
醉酒成梦
醉酒成梦 2021-01-04 23:43

I have 8 similar PL/pgSQL functions; they are used as INSTEAD OF INSERT/UPDATE/DELETE triggers on views to make them writable. The views each combine columns of

3条回答
  •  死守一世寂寞
    2021-01-05 00:27

    Composite types. PostgresSQL has documentation on this, you essentially need to use something like

    '()' or ROW() to construct the composite type for a row to pass into a function.

提交回复
热议问题