From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: prakashrnse@gmail.com
Subject: BUG #15814: pldbgapi error
Date: Mon, 20 May 2019 11:22:12 +0000
Message-ID: <15814-23d7d2312ee5ac3f@postgresql.org> (raw)
The following bug has been logged on the website:
Bug reference: 15814
Logged by: Ramakrishnan R
Email address: prakashrnse@gmail.com
PostgreSQL version: 11.3
Operating system: rhel 7.3
Description:
Hi Team,
We are trying to install the pldbgapi extension in postgresql 11.3 server
but we getting below error,Please do the needful,
==> make USE_PGXS=1
gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement
-Wendif-labels -Wmissing-format-attribute -Wformat-security
-fno-strict-aliasing -fwrapv -fexcess-precision=standard -O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong
--param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -fPIC
-I/usr/pgsql-11/lib/pgxs/src/makefiles/../../src/pl/plpgsql/src -I. -I./
-I/usr/pgsql-11/include/server -I/usr/pgsql-11/include/internal
-D_GNU_SOURCE -I/usr/include/libxml2 -I/usr/include -c -o
plpgsql_debugger.o plpgsql_debugger.c
plpgsql_debugger.c: In function ‘plpgsql_send_vars’:
plpgsql_debugger.c:263:16: error: ‘TRUE’ undeclared (first use in this
function)
isArg = TRUE;
^
plpgsql_debugger.c:263:16: note: each undeclared identifier is reported only
once for each function it appears in
plpgsql_debugger.c:244:4: warning: enumeration value ‘PLPGSQL_DTYPE_ROW’ not
handled in switch [-Wswitch]
switch( estate->datums[i]->dtype )
^
plpgsql_debugger.c:244:4: warning: enumeration value ‘PLPGSQL_DTYPE_REC’ not
handled in switch [-Wswitch]
plpgsql_debugger.c:244:4: warning: enumeration value
‘PLPGSQL_DTYPE_RECFIELD’ not handled in switch [-Wswitch]
plpgsql_debugger.c:244:4: warning: enumeration value
‘PLPGSQL_DTYPE_ARRAYELEM’ not handled in switch [-Wswitch]
plpgsql_debugger.c:244:4: warning: enumeration value ‘PLPGSQL_DTYPE_PROMISE’
not handled in switch [-Wswitch]
plpgsql_debugger.c: In function ‘find_datum_by_name’:
plpgsql_debugger.c:484:9: error: ‘PLPGSQL_DTYPE_EXPR’ undeclared (first use
in this function)
case PLPGSQL_DTYPE_EXPR:
^
plpgsql_debugger.c:462:3: warning: enumeration value ‘PLPGSQL_DTYPE_PROMISE’
not handled in switch [-Wswitch]
switch( frame->datums[i]->dtype )
^
plpgsql_debugger.c: In function ‘print_rec’:
plpgsql_debugger.c:575:9: error: ‘PLpgSQL_rec’ has no member named
‘tupdesc’
if (tgt->tupdesc == NULL)
^
plpgsql_debugger.c:578:29: error: ‘PLpgSQL_rec’ has no member named
‘tupdesc’
for( attNo = 0; attNo < tgt->tupdesc->natts; ++attNo )
^
plpgsql_debugger.c:580:36: error: ‘PLpgSQL_rec’ has no member named ‘tup’
char * extval = SPI_getvalue( tgt->tup, tgt->tupdesc, attNo + 1 );
^
plpgsql_debugger.c:580:46: error: ‘PLpgSQL_rec’ has no member named
‘tupdesc’
char * extval = SPI_getvalue( tgt->tup, tgt->tupdesc, attNo + 1 );
^
In file included from /usr/pgsql-11/include/server/postgres.h:46:0,
from plpgsql_debugger.c:12:
plpgsql_debugger.c:582:51: error: ‘PLpgSQL_rec’ has no member named
‘tupdesc’
dbg_send( "v:%s.%s:%s\n", var_name, NameStr(
tgt->tupdesc->attrs[attNo]->attname ), extval ? extval : "NULL" );
^
/usr/pgsql-11/include/server/c.h:576:25: note: in definition of macro
‘NameStr’
#define NameStr(name) ((name).data)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: noreply@postgresql.org, prakashrnse@gmail.com
Subject: Re: BUG #15814: pldbgapi error
In-Reply-To: <15814-23d7d2312ee5ac3f@postgresql.org>
References: <15814-23d7d2312ee5ac3f@postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
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