Re: Where I can find the achieve of the 'generate_series' ?

From: Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at>
To: Wen Yi <896634148(at)qq(dot)com>, pgsql-general <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: Where I can find the achieve of the 'generate_series' ?
Date: 2023-05-30 07:24:52
Message-ID: 057a9694dd27b33cdd83528aaecfbee6af8c63b1.camel@cybertec.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tue, 2023-05-30 at 08:34 +0800, Wen Yi wrote:
> I want to figure out the principle of the function 'generate_series', but I don't know it contains in which source file.(I download the pgsql 15.3 source code)
> Can someone provide some advice?

https://git.postgresql.org/gitweb/?p=postgresql.git;a=blob;f=src/backend/utils/adt/int.c;h=44d1c7ad0c4d770acc33f35bb57080bac7670e5c;hb=HEAD#l1499

This is the "integer" version of the function, the others are in
"int8.c", "numeric.c" and "timestamp.c".

Yours,
Laurenz Albe

In response to

Browse pgsql-general by date

  From Date Subject
Next Message vignesh C 2023-05-30 11:19:18 Re: Support logical replication of DDLs
Previous Message shveta malik 2023-05-30 02:53:37 Re: Support logical replication of DDLs