TG_RELNAME problem - Mailing list pgsql-general

From Uros
Subject TG_RELNAME problem
Date
Msg-id 1606519365.20040225160240@sir-mag.com
Whole thread Raw
List pgsql-general
Hello ,

When i use TG_RELNAME with SELECT INTO and from

Create or replace function "fn_i_generate_path_category"() returns trigger as '
declare
    n integer;
    category RECORD;
    tmp RECORD;
begin
        raise notice ''%'',TG_RELNAME;
    if new."path" = '''' then
        SELECT INTO tmp "id_category" from TG_RELNAME where "path" = ''Top'';
        if FOUND then
        ...............

When function is started i get error:

 ERROR:  syntax error at or near "$1" at character 29

What can I do

--
Best regards,
 Uros                          mailto:uros@sir-mag.com


pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: invalid memory alloc request size
Next
From: Dave Cramer
Date:
Subject: Re: Moving from MySQL to PGSQL....some questions