Skip site navigation (1) Skip section navigation (2)

Re: Adding a field in Path Structure and Plan Structure

From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: Zichen Xu <xzckiller(at)gmail(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Adding a field in Path Structure and Plan Structure
Date: 2009-02-23 21:21:47
Message-ID: 603c8f070902231321m1c6412a8j8172bd69821d9539@mail.gmail.com (view raw or flat)
Thread:
Lists: pgsql-hackers
On Mon, Feb 23, 2009 at 4:14 PM, Zichen Xu <xzckiller(at)gmail(dot)com> wrote:
> Here is my problem and also the question. I'd like adding a field in
> Path structure and Plan structure as follows:
>
> typedef struct Path{
> ....bla bla bla
>
> Cost energy_cost;
>
> ....bla bla bla
>
>
> }
>
>
> typedef struct Plan{
> ....bla bla bla
>
> Cost energy_cost;
>
> ....bla bla bla
>
>
> }
>
>
> Also, I have modified the funscopy.c and every related place where the
> other field total_cost appears. Right now, the compile is fine and
> build is fine. However, everytime the server is running and I send a
> query to the server, it crashed. as
>
> psql:1.sql:23: server closed the connection unexpectedly
> This probably means the server terminated abnormally
> before or while processing the request.
> psql:1.sql:23: connection to server was lost
>
>
> Is there anyone who can help me with it?

Attach to the backend with gdb.  Then you can get a backtrace, esp. if
you've built with --enable-debug.

It may be helpful to use lsof to figure out which backend your psql
session is connected to.

...Robert

In response to

Responses

pgsql-hackers by date

Next:From: Tom LaneDate: 2009-02-23 21:29:50
Subject: Re: Adding a field in Path Structure and Plan Structure
Previous:From: Zichen XuDate: 2009-02-23 21:14:29
Subject: Adding a field in Path Structure and Plan Structure

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group