pg.ddx.io pgsql-general@postgresql.org mailing list archive
help / color / mirror / Atom feedWhere I can find the achieve of the 'generate_series' ?
4+ messages / 4 participants
[nested] [flat]
* Where I can find the achieve of the 'generate_series' ?
@ 2023-05-30 00:34 Wen Yi <896634148@qq.com>
2023-05-30 00:48 ` Re: Where I can find the achieve of the 'generate_series' ? Adrian Klaver <adrian.klaver@aklaver.com>
2023-05-30 00:59 ` Re: Where I can find the achieve of the 'generate_series' ? jian he <jian.universality@gmail.com>
2023-05-30 07:24 ` Re: Where I can find the achieve of the 'generate_series' ? Laurenz Albe <laurenz.albe@cybertec.at>
0 siblings, 3 replies; 4+ messages in thread
From: Wen Yi @ 2023-05-30 00:34 UTC (permalink / raw)
To: pgsql-general <pgsql-general@lists.postgresql.org>
Hi team,
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?
Thanks in advance!
Yours,
Wen Yi
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: Where I can find the achieve of the 'generate_series' ?
2023-05-30 00:34 Where I can find the achieve of the 'generate_series' ? Wen Yi <896634148@qq.com>
@ 2023-05-30 00:48 ` Adrian Klaver <adrian.klaver@aklaver.com>
2 siblings, 0 replies; 4+ messages in thread
From: Adrian Klaver @ 2023-05-30 00:48 UTC (permalink / raw)
To: Wen Yi <896634148@qq.com>; pgsql-general <pgsql-general@lists.postgresql.org>
On 5/29/23 17:34, Wen Yi wrote:
> Hi team,
> 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?
> Thanks in advance!
>
At ~src/
grep -r --include=*.c generate_series
> Yours,
> Wen Yi
--
Adrian Klaver
adrian.klaver@aklaver.com
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: Where I can find the achieve of the 'generate_series' ?
2023-05-30 00:34 Where I can find the achieve of the 'generate_series' ? Wen Yi <896634148@qq.com>
@ 2023-05-30 00:59 ` jian he <jian.universality@gmail.com>
2 siblings, 0 replies; 4+ messages in thread
From: jian he @ 2023-05-30 00:59 UTC (permalink / raw)
To: Wen Yi <896634148@qq.com>; +Cc: pgsql-general <pgsql-general@lists.postgresql.org>
On Tue, May 30, 2023 at 8:35 AM Wen Yi <896634148@qq.com> wrote:
> Hi team,
> 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?
> Thanks in advance!
>
> Yours,
> Wen Yi
>
select proname,prosrc,prosupport from pg_proc where proname ~*
'generate_series';
then grep the prosrc.
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: Where I can find the achieve of the 'generate_series' ?
2023-05-30 00:34 Where I can find the achieve of the 'generate_series' ? Wen Yi <896634148@qq.com>
@ 2023-05-30 07:24 ` Laurenz Albe <laurenz.albe@cybertec.at>
2 siblings, 0 replies; 4+ messages in thread
From: Laurenz Albe @ 2023-05-30 07:24 UTC (permalink / raw)
To: Wen Yi <896634148@qq.com>; pgsql-general <pgsql-general@lists.postgresql.org>
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=44d1c7ad0...
This is the "integer" version of the function, the others are in
"int8.c", "numeric.c" and "timestamp.c".
Yours,
Laurenz Albe
^ permalink raw reply [nested|flat] 4+ messages in thread
end of thread, other threads:[~2023-05-30 07:24 UTC | newest]
Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2023-05-30 00:34 Where I can find the achieve of the 'generate_series' ? Wen Yi <896634148@qq.com>
2023-05-30 00:48 ` Adrian Klaver <adrian.klaver@aklaver.com>
2023-05-30 00:59 ` jian he <jian.universality@gmail.com>
2023-05-30 07:24 ` Laurenz Albe <laurenz.albe@cybertec.at>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox