Thread: SQL state 58P01 triggered by a database script execution

SQL state 58P01 triggered by a database script execution

From
aymen marouani
Date:
Hi,

I have a database under Postgres v8.3 and I generated its backups script using PGAdmin III.
I executed the same script under Postgres v8.2 in order to create the same database but I get the following error

" ERROR: could not access file "$libdir/pageinspect": No such file or directory
  SQL state :58P01"

Is this error related to the difference of versions ?

Thanks in advance.

Re: SQL state 58P01 triggered by a database script execution

From
"A. Kretschmer"
Date:
In response to aymen marouani :
> Hi,
> 
> I have a database under Postgres v8.3 and I generated its backups script using
> PGAdmin III.
> I executed the same script under Postgres v8.2 in order to create the same
> database but I get the following error
> 
> " ERROR: could not access file "$libdir/pageinspect": No such file or directory
>   SQL state :58P01"
> 

Pageinspect is a contrib-modul, so i think, you should install that. But
i don't know if this available for 8.2.


Andreas
-- 
Andreas Kretschmer
Kontakt:  Heynitz: 035242/47150,   D1: 0160/7141639 (mehr: -> Header)
GnuPG: 0x31720C99, 1006 CCB4 A326 1D42 6431  2EB0 389D 1DC2 3172 0C99


Re: SQL state 58P01 triggered by a database script execution

From
aymen marouani
Date:
Thanks for the help,

In deed I found those lines in my script

"--
-- TOC entry 25 (class 1255 OID 16409)
-- Dependencies: 6
-- Name: bt_metap(text); Type: FUNCTION; Schema: public; Owner: postgres
--

CREATE FUNCTION bt_metap(relname text, OUT magic integer, OUT version integer, OUT root integer, OUT level integer, OUT fastroot integer, OUT fastlevel integer) RETURNS record
    AS '$libdir/pageinspect', 'bt_metap'
    LANGUAGE c STRICT;
"

Can I comment those lines to remove the error ?

2009/12/9 A. Kretschmer <andreas.kretschmer@schollglas.com>
In response to aymen marouani :
> Hi,
>
> I have a database under Postgres v8.3 and I generated its backups script using
> PGAdmin III.
> I executed the same script under Postgres v8.2 in order to create the same
> database but I get the following error
>
> " ERROR: could not access file "$libdir/pageinspect": No such file or directory
>   SQL state :58P01"
>

Pageinspect is a contrib-modul, so i think, you should install that. But
i don't know if this available for 8.2.


Andreas
--
Andreas Kretschmer
Kontakt:  Heynitz: 035242/47150,   D1: 0160/7141639 (mehr: -> Header)
GnuPG: 0x31720C99, 1006 CCB4 A326 1D42 6431  2EB0 389D 1DC2 3172 0C99

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

Re: SQL state 58P01 triggered by a database script execution

From
"A. Kretschmer"
Date:
In response to aymen marouani :
> Thanks for the help,
> 
> In deed I found those lines in my script
> 
> "--
> -- TOC entry 25 (class 1255 OID 16409)
> -- Dependencies: 6
> -- Name: bt_metap(text); Type: FUNCTION; Schema: public; Owner: postgres
> --
> 
> CREATE FUNCTION bt_metap(relname text, OUT magic integer, OUT version integer,
> OUT root integer, OUT level integer, OUT fastroot integer, OUT fastlevel
> integer) RETURNS record
>     AS '$libdir/pageinspect', 'bt_metap'
>     LANGUAGE c STRICT;
> "
> 
> Can I comment those lines to remove the error ?

Sure. But that don't solve your problem if you call that function
later...

Regards, Andreas
-- 
Andreas Kretschmer
Kontakt:  Heynitz: 035242/47150,   D1: 0160/7141639 (mehr: -> Header)
GnuPG: 0x31720C99, 1006 CCB4 A326 1D42 6431  2EB0 389D 1DC2 3172 0C99