Databases

NAVIGATION
CATEGORIES
REFERRENCE
LINKS
  • Fw: lo_import problem

    5 answers - 404 bytes - related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg Add To My Reddit

    When i am using lo_import to load files into the database i am getting the following error
    Please help me what i need to do
    Insert into sampletbl values(lo_import('c:\\sample.txt'),'sample.txt');
    ERRR: function lo_import ("unknown") does not exist
    HINT: No function matches the given name and argument types. You may need to ad
    d explicit type casts.
  • No.1 | | 706 bytes | |

    This is what works for me from the command line on Linux with PG 8.0.3:

    INSERT into images VALUES ( lo_import('/tmp/white.jpg'), 'white');

    What version of postgresql are you using?

    Thu, 19 Jan 2006, sandhya wrote:

    >
    >
    >

    When i am using lo_import to load files into the database i am getting the following error
    Please help me what i need to do

    Insert into sampletbl values(lo_import('c:\\sample.txt'),'sample.txt');

    ERRR: function lo_import ("unknown") does not exist
    HINT: No function matches the given name and argument types. You may need to ad
    d explicit type casts.
  • No.2 | | 1079 bytes | |

    I am trying on windows
    It is not coming.Version is 8.0

    Message
    From: "Jeff Frost" <jeff (AT) frostconsultingllc (DOT) com>
    To: "sandhya" <sandhyar (AT) amiindia (DOT) co.in>
    Cc: "Postgres" <pgsql-admin (AT) postgresql (DOT) org>
    Sent: Thursday, January 19, 2006 1:00 PM
    Subject: Re: [ADMIN] Fw: lo_import problem

    This is what works for me from the command line on Linux with PG 8.0.3:

    INSERT into images VALUES ( lo_import('/tmp/white.jpg'), 'white');

    What version of postgresql are you using?

    Thu, 19 Jan 2006, sandhya wrote:
    >
    >
    >
    >

    When i am using lo_import to load files into the database i am getting
    the following error
    Please help me what i need to do

    Insert into sampletbl values(lo_import('c:\\sample.txt'),'sample.txt');

    ERRR: function lo_import ("unknown") does not exist
    HINT: No function matches the given name and argument types. You may
    need to ad
    d explicit type casts.
  • No.3 | | 1121 bytes | |

    I am trying on windowsI am getting the following error message.
    ERRR: could not open server file

    Message
    From: "Jeff Frost" <jeff (AT) frostconsultingllc (DOT) com>
    To: "sandhya" <sandhyar (AT) amiindia (DOT) co.in>
    Cc: "Postgres" <pgsql-admin (AT) postgresql (DOT) org>
    Sent: Thursday, January 19, 2006 1:00 PM
    Subject: Re: [ADMIN] Fw: lo_import problem

    This is what works for me from the command line on Linux with PG 8.0.3:

    INSERT into images VALUES ( lo_import('/tmp/white.jpg'), 'white');

    What version of postgresql are you using?

    Thu, 19 Jan 2006, sandhya wrote:
    >
    >
    >
    >

    When i am using lo_import to load files into the database i am getting
    the following error
    Please help me what i need to do

    Insert into sampletbl values(lo_import('c:\\sample.txt'),'sample.txt');

    ERRR: function lo_import ("unknown") does not exist
    HINT: No function matches the given name and argument types. You may
    need to ad
    d explicit type casts.
  • No.4 | | 1271 bytes | |

    This worked fine for me on a freshly installed 8.0.3 on Windows XP:

    pics=# INSERT into images VALUES ( lo_import('C:\\Program Files\\PostgreSQL\\8.0\\Installation Notes.rtf'), 'notes');

    "could not open server file" means that either the file does not exist, or the
    user you are trying to access the file as does not have the rights to read it.

    Again, check your permissions as I mentioned to you earlier.

    Wed, 18 Jan 2006, Jeff Frost wrote:

    This is what works for me from the command line on Linux with PG 8.0.3:

    INSERT into images VALUES ( lo_import('/tmp/white.jpg'), 'white');

    What version of postgresql are you using?

    Thu, 19 Jan 2006, sandhya wrote:
    >
    >
    >
    >
    >When i am using lo_import to load files into the database i am getting the
    >following error
    >Please help me what i need to do
    >
    >Insert into sampletbl values(lo_import('c:\\sample.txt'),'sample.txt');
    >
    >ERRR: function lo_import ("unknown") does not exist
    >HINT: No function matches the given name and argument types. You may need
    >to ad
    >d explicit type casts.
    >
    >
  • No.5 | | 1853 bytes | |

    okjeff thank you very much.
    I checked in pg_hba.conf and reloaded again and did now working fine.

    Message
    From: "Jeff Frost" <jeff (AT) frostconsultingllc (DOT) com>
    To: "sandhya" <sandhyar (AT) amiindia (DOT) co.in>
    Cc: "Postgres" <pgsql-admin (AT) postgresql (DOT) org>
    Sent: Thursday, January 19, 2006 1:13 PM
    Subject: Re: [ADMIN] Fw: lo_import problem

    This worked fine for me on a freshly installed 8.0.3 on Windows XP:

    pics=# INSERT into images VALUES ( lo_import('C:\\Program
    Files\\PostgreSQL\\8.0\\Installation Notes.rtf'), 'notes');

    "could not open server file" means that either the file does not exist, or
    the
    user you are trying to access the file as does not have the rights to read
    it.

    Again, check your permissions as I mentioned to you earlier.

    Wed, 18 Jan 2006, Jeff Frost wrote:

    This is what works for me from the command line on Linux with PG 8.0.3:

    INSERT into images VALUES ( lo_import('/tmp/white.jpg'), 'white');

    What version of postgresql are you using?

    Thu, 19 Jan 2006, sandhya wrote:
    >
    >>
    >>
    >>

    >When i am using lo_import to load files into the database i am getting

    the
    >following error
    >Please help me what i need to do
    >>

    >Insert into sampletbl values(lo_import('c:\\sample.txt'),'sample.txt');
    >>

    >ERRR: function lo_import ("unknown") does not exist
    >HINT: No function matches the given name and argument types. You may

    need
    >to ad
    >d explicit type casts.
    >
    >
    >

Re: Fw: lo_import problem


max 4000 letters.
Your nickname that display:
In order to stop the spam: 0 + 9 =
QUESTION ON "Databases"

EMSDN.COM