pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
BUG #14819: postgres_fwd  could not load library
6+ messages / 3 participants
[nested] [flat]

* BUG #14819: postgres_fwd  could not load library
@ 2017-09-19 09:14 fte@nct.ru
  2017-09-19 15:35 ` Re: BUG #14819: postgres_fwd could not load library Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 1 reply; 6+ messages in thread

From: fte@nct.ru @ 2017-09-19 09:14 UTC (permalink / raw)
  To: pgsql-bugs; +Cc: fte@nct.ru

The following bug has been logged on the website:

Bug reference:      14819
Logged by:          Fakhroutdinov Takhir
Email address:      fte@nct.ru
PostgreSQL version: 10beta4
Operating system:   Mac OS X
Description:        

ERROR:  could not load library "/usr/local/pgsql/lib/postgres_fdw.so":
dlopen(/usr/local/pgsql/lib/postgres_fdw.so, 10): Symbol not found:
_ExecProcNode
  Referenced from: /usr/local/pgsql/lib/postgres_fdw.so
  Expected in: /usr/local/pgsql/bin/postgres
 in /usr/local/pgsql/lib/postgres_fdw.so

ExecProcNode defined in excutor.h as static inlide function, so it not found
in /usr/local/bin/postgres



-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs


^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* Re: BUG #14819: postgres_fwd could not load library
  2017-09-19 09:14 BUG #14819: postgres_fwd  could not load library fte@nct.ru
@ 2017-09-19 15:35 ` Tom Lane <tgl@sss.pgh.pa.us>
  2017-09-19 17:56   ` Re: BUG #14819: postgres_fwd could not load library Takhir Fakhrutdinov <fte@nct.ru>
  2017-09-19 19:00   ` Re: BUG #14819: postgres_fwd could not load library Takhir Fakhrutdinov <fte@nct.ru>
  0 siblings, 2 replies; 6+ messages in thread

From: Tom Lane @ 2017-09-19 15:35 UTC (permalink / raw)
  To: fte@nct.ru; +Cc: pgsql-bugs

fte@nct.ru writes:
> ERROR:  could not load library "/usr/local/pgsql/lib/postgres_fdw.so":
> dlopen(/usr/local/pgsql/lib/postgres_fdw.so, 10): Symbol not found:
> _ExecProcNode
>   Referenced from: /usr/local/pgsql/lib/postgres_fdw.so
>   Expected in: /usr/local/pgsql/bin/postgres
>  in /usr/local/pgsql/lib/postgres_fdw.so

Apparently you're using an old version of postgres_fdw with a v10
core server.

			regards, tom lane


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* Re: BUG #14819: postgres_fwd could not load library
  2017-09-19 09:14 BUG #14819: postgres_fwd  could not load library fte@nct.ru
  2017-09-19 15:35 ` Re: BUG #14819: postgres_fwd could not load library Tom Lane <tgl@sss.pgh.pa.us>
@ 2017-09-19 17:56   ` Takhir Fakhrutdinov <fte@nct.ru>
  1 sibling, 0 replies; 6+ messages in thread

From: Takhir Fakhrutdinov @ 2017-09-19 17:56 UTC (permalink / raw)
  To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: pgsql-bugs


> 19 сент. 2017 г., в 18:35, Tom Lane <tgl@sss.pgh.pa.us> написал(а):
> 
> fte@nct.ru writes:
>> ERROR:  could not load library "/usr/local/pgsql/lib/postgres_fdw.so":
>> dlopen(/usr/local/pgsql/lib/postgres_fdw.so, 10): Symbol not found:
>> _ExecProcNode
>>  Referenced from: /usr/local/pgsql/lib/postgres_fdw.so
>>  Expected in: /usr/local/pgsql/bin/postgres
>> in /usr/local/pgsql/lib/postgres_fdw.so
> 
> Apparently you're using an old version of postgres_fdw with a v10
> core server.
> 
> 			regards, tom lane


I am download  source code from here https://www.postgresql.org/ftp/source/v10beta4/ <https://www.postgresql.org/ftp/source/v10beta4/;

--
With best regards, Takhir Fakhrutdinov

^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* Re: BUG #14819: postgres_fwd could not load library
  2017-09-19 09:14 BUG #14819: postgres_fwd  could not load library fte@nct.ru
  2017-09-19 15:35 ` Re: BUG #14819: postgres_fwd could not load library Tom Lane <tgl@sss.pgh.pa.us>
@ 2017-09-19 19:00   ` Takhir Fakhrutdinov <fte@nct.ru>
  2017-09-19 19:43     ` Re: BUG #14819: postgres_fwd could not load library Tom Lane <tgl@sss.pgh.pa.us>
  1 sibling, 1 reply; 6+ messages in thread

From: Takhir Fakhrutdinov @ 2017-09-19 19:00 UTC (permalink / raw)
  To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: pgsql-bugs


> 19 сент. 2017 г., в 18:35, Tom Lane <tgl@sss.pgh.pa.us> написал(а):
> 
> fte@nct.ru writes:
>> ERROR:  could not load library "/usr/local/pgsql/lib/postgres_fdw.so":
>> dlopen(/usr/local/pgsql/lib/postgres_fdw.so, 10): Symbol not found:
>> _ExecProcNode
>>  Referenced from: /usr/local/pgsql/lib/postgres_fdw.so
>>  Expected in: /usr/local/pgsql/bin/postgres
>> in /usr/local/pgsql/lib/postgres_fdw.so
> 
> Apparently you're using an old version of postgres_fdw with a v10
> core server.
> 
> 			regards, tom lane


Dear, Tom

Changes was made in commit 
2017-07-30	Andres Freund <https://git.postgresql.org/gitweb/?p=postgresql.git;a=search;s=Andres+Freund;st=author;	Move ExecProcNode from dispatch to function pointer... <https://git.postgresql.org/gitweb/?p=postgresql.git;a=commit;h=cc9f08b6b813e30789100b6b34110d8be1090...;
including the file src/backend/executor/execProcnode.c <https://git.postgresql.org/gitweb/?p=postgresql.git;a=blob;f=src/backend/executor/execProcnode.c;h=3...;

-/* ----------------------------------------------------------------
- *     ExecProcNode
- *
- *     Execute the given node to return a(nother) tuple.
- * ----------------------------------------------------------------
+/*
+ * ExecProcNode wrapper that performs some one-time checks, before calling
+ * the relevant node method (possibly via an instrumentation wrapper).
  */
-TupleTableSlot *
-ExecProcNode(PlanState *node)
+static TupleTableSlot *
+ExecProcNodeFirst(PlanState *node)
…..

and file src/include/executor/executor.h <https://git.postgresql.org/gitweb/?p=postgresql.git;a=blob;f=src/include/executor/executor.h;h=60326...;
 
 /*
- * prototypes from functions in execProcnode.c
+ * functions in execProcnode.c
  */
 extern PlanState *ExecInitNode(Plan *node, EState *estate, int eflags);
-extern TupleTableSlot *ExecProcNode(PlanState *node);
 extern Node *MultiExecProcNode(PlanState *node);
 extern void ExecEndNode(PlanState *node);
 extern bool ExecShutdownNode(PlanState *node);
 
+
+/* ----------------------------------------------------------------
+ *     ExecProcNode
+ *
+ *     Execute the given node to return a(nother) tuple.
+ * ----------------------------------------------------------------
+ */
+#ifndef FRONTEND
+static inline TupleTableSlot *
+ExecProcNode(PlanState *node)
+{
+   if (node->chgParam != NULL) /* something changed? */
+       ExecReScan(node);       /* let ReScan handle this */
+
+   return node->ExecProcNode(node);
+}
+#endif
+

So postgresql core now has no entry _ExecProcNode


But postgres_fdw.c <https://git.postgresql.org/gitweb/?p=postgresql.git;a=blob;f=contrib/postgres_fdw/postgres_fdw.c;h=f...; still call _ExecProcNode

/*
 * postgresRecheckForeignScan
 *		Execute a local join execution plan for a foreign join
 */
static bool
postgresRecheckForeignScan(ForeignScanState *node, TupleTableSlot *slot)
{
	Index		scanrelid = ((Scan *) node->ss.ps.plan)->scanrelid;
	PlanState  *outerPlan = outerPlanState(node);
	TupleTableSlot *result;

	/* For base foreign relations, it suffices to set fdw_recheck_quals */
	if (scanrelid > 0)
		return true;

	Assert(outerPlan != NULL);

	/* Execute a local join execution plan */
	result = ExecProcNode(outerPlan);
	if (TupIsNull(result))
		return false;

	/* Store result in the given slot */
	ExecCopySlot(slot, result);

	return true;
}


--
With best regards, Takhir Fakhrutdinov

^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* Re: BUG #14819: postgres_fwd could not load library
  2017-09-19 09:14 BUG #14819: postgres_fwd  could not load library fte@nct.ru
  2017-09-19 15:35 ` Re: BUG #14819: postgres_fwd could not load library Tom Lane <tgl@sss.pgh.pa.us>
  2017-09-19 19:00   ` Re: BUG #14819: postgres_fwd could not load library Takhir Fakhrutdinov <fte@nct.ru>
@ 2017-09-19 19:43     ` Tom Lane <tgl@sss.pgh.pa.us>
  2017-09-19 20:13       ` Re: BUG #14819: postgres_fwd could not load library Takhir Fakhrutdinov <fte@nct.ru>
  0 siblings, 1 reply; 6+ messages in thread

From: Tom Lane @ 2017-09-19 19:43 UTC (permalink / raw)
  To: Takhir Fakhrutdinov <fte@nct.ru>; +Cc: pgsql-bugs

Takhir Fakhrutdinov <fte@nct.ru> writes:
>> 19 сент. 2017 г., в 18:35, Tom Lane <tgl@sss.pgh.pa.us> написал(а):
>> Apparently you're using an old version of postgres_fdw with a v10
>> core server.

> So postgresql core now has no entry _ExecProcNode

Yup.  And the problem is you're trying to run a version of postgres_fdw.so
that still thinks there should be such an entry.  If it's not actually
old, then most likely the problem is that the compiler looked at an old
version of executor.h while compiling it.

			regards, tom lane


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* Re: BUG #14819: postgres_fwd could not load library
  2017-09-19 09:14 BUG #14819: postgres_fwd  could not load library fte@nct.ru
  2017-09-19 15:35 ` Re: BUG #14819: postgres_fwd could not load library Tom Lane <tgl@sss.pgh.pa.us>
  2017-09-19 19:00   ` Re: BUG #14819: postgres_fwd could not load library Takhir Fakhrutdinov <fte@nct.ru>
  2017-09-19 19:43     ` Re: BUG #14819: postgres_fwd could not load library Tom Lane <tgl@sss.pgh.pa.us>
@ 2017-09-19 20:13       ` Takhir Fakhrutdinov <fte@nct.ru>
  0 siblings, 0 replies; 6+ messages in thread

From: Takhir Fakhrutdinov @ 2017-09-19 20:13 UTC (permalink / raw)
  To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: pgsql-bugs


> 19 сент. 2017 г., в 22:43, Tom Lane <tgl@sss.pgh.pa.us> написал(а):
> 
> Takhir Fakhrutdinov <fte@nct.ru> writes:
>>> 19 сент. 2017 г., в 18:35, Tom Lane <tgl@sss.pgh.pa.us> написал(а):
>>> Apparently you're using an old version of postgres_fdw with a v10
>>> core server.
> 
>> So postgresql core now has no entry _ExecProcNode
> 
> Yup.  And the problem is you're trying to run a version of postgres_fdw.so
> that still thinks there should be such an entry.  If it's not actually
> old, then most likely the problem is that the compiler looked at an old
> version of executor.h while compiling it.
> 
> 			regards, tom lane


Thank you, you are right, I really used the old version of postgres_fdw.so

--
With best regards, Takhir Fakhrutdinov

^ permalink  raw  reply  [nested|flat] 6+ messages in thread


end of thread, other threads:[~2017-09-19 20:13 UTC | newest]

Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2017-09-19 09:14 BUG #14819: postgres_fwd  could not load library fte@nct.ru
2017-09-19 15:35 ` Re: BUG #14819: postgres_fwd could not load library Tom Lane <tgl@sss.pgh.pa.us>
2017-09-19 17:56   ` Re: BUG #14819: postgres_fwd could not load library Takhir Fakhrutdinov <fte@nct.ru>
2017-09-19 19:00   ` Re: BUG #14819: postgres_fwd could not load library Takhir Fakhrutdinov <fte@nct.ru>
2017-09-19 19:43     ` Re: BUG #14819: postgres_fwd could not load library Tom Lane <tgl@sss.pgh.pa.us>
2017-09-19 20:13       ` Re: BUG #14819: postgres_fwd could not load library Takhir Fakhrutdinov <fte@nct.ru>

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