Hello All,
In postgres we are seeing issues during automatic partition maintenance
using pg_partman extension. So basically it automatically creates one new
partition and drops one historical partition each day based on the set
retention period in part_config. We just call it like
partman.run_maint
On Mon, 2024-07-01 at 10:33 +0200, Dominique Devienne wrote:
> INSERT'ing a new row is wrapped in a DEFINER function,
> that returns the newly inserted row's OK (and integral ID).
>
> And in the code calling that function, I was
>
> SELECT * FROM table WHERE ID = insert_row_via_func()
>
Hi. So for business rule reason,
INSERT'ing a new row is wrapped in a DEFINER function,
that returns the newly inserted row's OK (and integral ID).
And in the code calling that function, I was
SELECT * FROM table WHERE ID = insert_row_via_func()
to "save a round trip", combining the inse
Igal Sapir schrieb am 01.07.2024 um 00:39:
> I am trying to pass a dynamic interval to generate_series() with date range.
>
> This works as expected, and generates a series with an interval of 1 month:
>
> SELECT generate_series(
> date_trunc('month', current_date),
> date_trunc('month',
Hi Igal:
On Mon, 1 Jul 2024 at 01:17, Igal Sapir wrote:
> I actually did test the expression that I posted, but it might be casting it
> twice. While your examples that you wrote show 1 month correctly:
> SELECT (interval '1 ' || 'month');
> ?column? |
> -+
> 00:00:01month|
No