Re: “Core” function in Postgres

From: Mark Kirkwood <mark(dot)kirkwood(at)catalyst(dot)net(dot)nz>
To: Mingzhe Li <mingzhe0908(at)gmail(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: “Core” function in Postgres
Date: 2014-09-24 01:25:45
Message-ID: 54221D99.1060008@catalyst.net.nz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 24/09/14 11:29, Mingzhe Li wrote:
> Hi experts,
>
> I want to know what's the "core" function used in Postgres server? I am
> looking for something corresponding to main() in a simple C program. I
> want to know the file path and the function name. I am using Postgres
> 9.3.5, however I assume the "core" function will be unchanged between
> different revisions.
>

I suspect you want to start looking at
PostgresMain in src/backend/tcop/postgres.c

and ServerLoop in src/backend/postmaster/postmaster.c

Regards

Mark

P.s: FWIW I think this *is* the right list to ask this type of question...

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Haas 2014-09-24 01:43:42 Re: BRIN indexes - TRAP: BadArgument
Previous Message Alvaro Herrera 2014-09-24 01:23:42 Re: BRIN indexes - TRAP: BadArgument