Re: AW: AW: Cast INTEGER to BIT confusion

2023-08-17 Thread GF
On Thu, 17 Aug 2023 at 19:09, GF wrote: > > Erik, > The could be a possible solution, if you could play with search_path... > > (sorry, Erik, obviously my message was intended to Markus)

Re: AW: AW: Cast INTEGER to BIT confusion

2023-08-17 Thread GF
Erik, The could be a possible solution, if you could play with search_path... You could mirror all the original schema onto another one with views that have the original table names. For all tables that need some special treatment you can then write instead-of triggers, while all other views are

Re: Window function for get the last value to extend missing rows

2023-05-12 Thread GF
On Fri, 12 May 2023 at 13:04, Durumdara wrote: > Dear Members! > > I have a table with temperature measures. > The data is coming from the PLC, but sometimes the period is "slipping", > so the values are not correctly minute based. > > 03:00 10 > 03:02 12 > 03:03 11 > 03:05 13 >

Re: [Extern] Re: Is a logical replication crash recovery safe?

2023-04-14 Thread GF
Markus, Yesterday EDB published the (open source) pg_failover_slots extension, aimed at pushing logical slot information on standbys: without it, that information is kept on the master only, so you have to rebuild the logical replication topology on switch/fail-overs. Obviously, if the promoted

Re: How to use the BRIN index properly?

2023-02-10 Thread GF
For membership/equality predicates (also partial, for multiple columns) you could take a look at bloom indexes: they are quite efficient in terms of space footprint, you can even choose how long is the signature for each entry and how is distributed among the columns.