Let's say I'm writing a Postgres PSQL script in which I fetch a rowtype variable from the DB:
DECLARE
m_bal Balances%ROWTYPE;
BEGIN
SELECT INTO m_bal *
FROM Balances
WHERE Balances.id = m_acct.id AND Balances.currency = _currency;
...
and then I'd like to update one or more values depending on more complex logic and save it to the database:
UPDATE Balances
SET ROW = m_bal
WHERE id = m_bal.id;
only this doesn't work and I'm getting nowhere after an hour of googling, I'm getting a general idea that Postgres doesn't support this, but having a definitive answer "no" would also be nice.