Syntax - Mailing list pgsql-general

From arun chirappurath
Subject Syntax
Date
Msg-id CAA23SdtRyKTfV8PTvzW690XgyKzfKCEX_80_CjEZp5c8ykFPmQ@mail.gmail.com
Whole thread Raw
Responses Re: Syntax
List pgsql-general
Hi All,

What is the difference or use case for below syntaxes?

do $$ 
declare d int; 
begin 
RAISE INFO 'Script started at %', CURRENT_TIMESTAMP;
update employees set first_name = 'g' where employee_id = 1; get diagnostics d = row_count; raise info 'selected: % rows', d; 
RAISE INFO 'Script finished at %', CURRENT_TIMESTAMP; end;$$;

Or




Just 

Begin;

Update statements 

Commit;

pgsql-general by date:

Previous
From: Vishwanath Kummera
Date:
Subject: Postgresql : pg_temp & pg_toast_temp
Next
From: Arne Henrik Segtnan
Date:
Subject: Re: PostgreSQL 12 error unrecognized configuration parameter zbx_tmp.wal_json_res