Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7031139
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T00:45:48+00:00 2026-05-28T00:45:48+00:00

I have written a C extension library for PG, using V1 calling convention. My

  • 0

I have written a C extension library for PG, using V1 calling convention. My db is ver 8.4.
I have successfully created the new functions.

However, when I invoke my new functions, it crashes the server, with the following message sent to the console:

The connection to the server was lost. Attempting reset: Failed.

The server log contains the line:

server process (PID 14751) was terminated by signal 11: Segmentation fault

I want to attach gdb to the postgres process, and see if I can obtain a stack trace, to help me start debugging. However, when I run

ps aux | grep postgres

to try to locate the postgres process, there seems to be several processes called postgres.

How may I correctly identify the postgres server process (after restarted) for debugging purposes as described above?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T00:45:49+00:00Added an answer on May 28, 2026 at 12:45 am

    I just found out the answer to this. The database name is also part of the ps aux output.

    For example:

    postgres  1071  0.0  0.1 101120  5360 ?        S    Jan03   0:01 /usr/lib/postgresql/8.4/bin/postgres -D /var/lib/postgresql/8.4/main -c config_file=/etc/postgresql/8.4/main/postgresql.conf
    postgres 11866  0.0  0.1  68444  4340 pts/1    S+   10:16   0:00 /usr/lib/postgresql/8.4/bin/psql postgres
    postgres 14856  0.0  0.1 103612  4716 ?        Ss   14:56   0:00 postgres: postgres mydatabase [local] idle  
    postgres 14894  0.0  0.0 101120  1640 ?        Ss   15:05   0:00 postgres: writer process  
    

    The process id in this case is 14856

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have written a Python extension library in C and I am currently using
I have a class library with some extension methods written in C# and an
I have written some C/C++ extension modules for PHP, using the 'old fashioned way'
I have written a PHP extension library in C++. I am writing the extension
I have written a Python extension for a C library. I have a data
I am using alfresco 3.4 d. I have written document library action to validate
I have written an extension method for string manipulation. I'm confused what should I
I have written a following code to get just the file name without extension
I am writing some unit tests for an extension method I have written on
I have an MFC extension DLL that I've written. It contains derived classes of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.