Thread: BUG #2898: dynamic load support

BUG #2898: dynamic load support

From
"Pankaj"
Date:
The following bug has been logged online:

Bug reference:      2898
Logged by:          Pankaj
Email address:      pankajsrivs@yahoo.com
PostgreSQL version: 8.2.0
Operating system:   LynxOS
Description:        dynamic load support
Details:

I have installed Postgresql 8.2.0 on LynxOS. Although, LynxOS is an
unsupported OS platform, as per postgres docs, it should work on modern Unix
compatible OS. Lynx is a Unix-like RTOS.

When I run:

/usr/local/pgsql/bin/initdb -D /usr/local/pgsql/data

It says:
fixing permissions................ok
creating subdirectories...............ok
selecting default max_connections...........100
selecting default shared_buffers/max_fsm_pages........32MB/204800
creating configuration files....ok
creating template1 database.........ok
initializing pg_authid.....ok
initializing dependencies........ok
creating system views...ok
loading system objects's dependencies...ok
creating conversions....FATAL: dynamic load not supported
STATEMENT: CREATE OR REPLACE FUNCTION...............

could not write to child process: Broken pipe
initdb: removing contents of data directory: /usr/local/pgsql/data

Please let us know the cause of the above error.

Thanks & regards,
Pankaj.

Re: BUG #2898: dynamic load support

From
Tom Lane
Date:
"Pankaj" <pankajsrivs@yahoo.com> writes:
> creating conversions....FATAL: dynamic load not supported
> STATEMENT: CREATE OR REPLACE FUNCTION...............

> Please let us know the cause of the above error.

The encoding conversion code is all in dynamically-loaded libraries.
(There are some other things that we expect to be able to load
dynamically too, such as the various PL languages, but this happens
to be what you'll hit first during initdb.)

I think you probably need to add some code to src/backend/port/dynloader/
to support LynxOS.  Please send a patch if you get it working.

            regards, tom lane

Re: BUG #2898: dynamic load support

From
Bruce Momjian
Date:
Pankaj wrote:
>
> The following bug has been logged online:
>
> Bug reference:      2898
> Logged by:          Pankaj
> Email address:      pankajsrivs@yahoo.com
> PostgreSQL version: 8.2.0
> Operating system:   LynxOS
> Description:        dynamic load support
> Details:
>
> I have installed Postgresql 8.2.0 on LynxOS. Although, LynxOS is an
> unsupported OS platform, as per postgres docs, it should work on modern Unix
> compatible OS. Lynx is a Unix-like RTOS.

No, it shouldn't, unless you know something we don't.  If LynxOS were
100% compatible with one of our supported platforms, it would run fine,
but since it isn't, you are going to have to dig into why it is
different and send us some patches to get LynxOS supported.

---------------------------------------------------------------------------


>
> When I run:
>
> /usr/local/pgsql/bin/initdb -D /usr/local/pgsql/data
>
> It says:
> fixing permissions................ok
> creating subdirectories...............ok
> selecting default max_connections...........100
> selecting default shared_buffers/max_fsm_pages........32MB/204800
> creating configuration files....ok
> creating template1 database.........ok
> initializing pg_authid.....ok
> initializing dependencies........ok
> creating system views...ok
> loading system objects's dependencies...ok
> creating conversions....FATAL: dynamic load not supported
> STATEMENT: CREATE OR REPLACE FUNCTION...............
>
> could not write to child process: Broken pipe
> initdb: removing contents of data directory: /usr/local/pgsql/data
>
> Please let us know the cause of the above error.
>
> Thanks & regards,
> Pankaj.
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Have you searched our list archives?
>
>                http://archives.postgresql.org

--
  Bruce Momjian   bruce@momjian.us
  EnterpriseDB    http://www.enterprisedb.com

  + If your life is a hard drive, Christ can be your backup. +