Re: update faster way

2024-09-15 Thread Peter J. Holzer
On 2024-09-14 20:26:32 +0530, yudhi s wrote: > > > On Sat, Sep 14, 2024 at 4:55 PM Peter J. Holzer wrote: > > > Which in turn means that you want as little overhead as possible per > batch which means finding those 5000 rows should be quick. Which brings > us back to Igor's questio

Re: Manual query vs trigger during data load

2024-09-15 Thread Peter J. Holzer
On 2024-09-14 21:21:45 +0530, yudhi s wrote: > On Sat, Sep 14, 2024 at 4:17 PM Peter J. Holzer wrote: > On 2024-09-14 00:54:49 +0530, yudhi s wrote: > > As "thiemo" mentioned , it can be done as below method, but if > > we have multiple lookup tables to be populated for multiple >

Re: re-novice coming back to pgsql: porting an SQLite update statement to postgres

2024-09-15 Thread Willow Chargin
On Sun, Sep 15, 2024 at 4:23 AM Alban Hertroys wrote: > > > On 15 Sep 2024, at 11:07, Dan Kortschak wrote: > > > > I have come to hopefully my last stumbling point. > > > > I am unable to see a way to express something like this SQLite syntax > > > > select json_group_array(json_replace(value, >

Regarding snapshot generation during creation of logical slot in pgsql14

2024-09-15 Thread Durgamahesh Manne
Hi, How do we generate the snapshot for the logical slot which can be used in pg_dump command options with --snapshot in pgsql 14? Any function to check the snapshot of the slot after creating slot with pg_create_logical_replication_slot('pgdg',pgoutput); Regards, Durga Mahesh

Generate the valid snapshot during creation of for the purpose of taking pg_dump with --snapshot option

2024-09-15 Thread Durgamahesh Manne
Hi pgdg team How to generate snapshot_name for required slot on latest versions of postgresql Below is the generated slot and snapshot info on postgres 10 osdb_lsr=# CREATE_REPLICATION_SLOT lsr_sync_01 LOGICAL pgoutput; slot_name | consistent_point | snapshot_name | output_plugin -+--

Re: re-novice coming back to pgsql: porting an SQLite update statement to postgres

2024-09-15 Thread Alban Hertroys
> On 15 Sep 2024, at 11:07, Dan Kortschak wrote: > > I have come to hopefully my last stumbling point. > > I am unable to see a way to express something like this SQLite syntax > > select json_group_array(json_replace(value, > '$.a', case >when json_extract(value, '$.a') > 2 then >

Re: re-novice coming back to pgsql: porting an SQLite update statement to postgres

2024-09-15 Thread Dan Kortschak
I have come to hopefully my last stumbling point. I am unable to see a way to express something like this SQLite syntax select json_group_array(json_replace(value, '$.a', case when json_extract(value, '$.a') > 2 then 2 else json_extract(value, '$.a') end, '$.b', case