Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7635597
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T07:28:02+00:00 2026-05-31T07:28:02+00:00

Am I crazy or just plain dumb? dev=# \df abuse_resolve List of functions -[

  • 0

Am I crazy or just plain dumb?

dev=# \df abuse_resolve 
List of functions
-[ RECORD 1 ]-------+------------------------------------------------------------------------------------------------------------------------------------
Schema              | public
Name                | abuse_resolve
Result data type    | record
Argument data types | INOUT __abuse_id bigint, OUT __msg character varying
Type                | normal

dev=# select abuse_resolve('30'::bigint); 
ERROR:  function abuse_resolve(bigint) does not exist
LINE 1: select abuse_resolve('30'::bigint);
               ^
HINT:  No function matches the given name and argument types. You might need to add explicit type casts.

Here’s the CREATE FUNCTION, I’ve omitted the meat of the code, but that should be irrelevant:

CREATE OR REPLACE FUNCTION abuse_resolve(INOUT __abuse_id bigint, OUT __msg character varying) RETURNS record AS $_$
DECLARE
    __abuse_status    VARCHAR;
BEGIN
 ...snip...
    UPDATE abuse SET abuse_status    = __abuse_status,
                       edate    = now(),
                       closed_on = now()
                 WHERE abuse_id        = __abuse_id;
    __msg = 'SUCCESS';
END;
$_$ LANGUAGE plpgsql SECURITY DEFINER;

And just for giggles:

GRANT ALL ON FUNCTION abuse_resolve(INOUT __abuse_id, OUT __msg character varying) TO PUBLIC;
GRANT ALL ON FUNCTION abuse_resolve(INOUT __abuse_id, OUT __msg character varying) TO myuser;

That function seems like it exists. What could I be missing?

This is resolved, the answer is: I’m dumb. I had improperly defined the arguments originally, but my code was using the correct ones. There was an extra bigint that had no business being there.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T07:28:03+00:00Added an answer on May 31, 2026 at 7:28 am

    Well, something is odd. I did:

    steve@steve@[local] =# create function abuse_resolve(inout __abuse_id bigint,
                                   out __msg text) returns record language plpgsql as
                                   $$ begin __msg = 'ok'; end; $$;
    CREATE FUNCTION
    steve@steve@[local] =# \df abuse_resolve
    List of functions
    -[ RECORD 1 ]-------+----------------------------------------
    Schema              | so9679418
    Name                | abuse_resolve
    Result data type    | record
    Argument data types | INOUT __abuse_id bigint, OUT __msg text
    Type                | normal
    
    steve@steve@[local] =# select abuse_resolve('30'::bigint);
    -[ RECORD 1 ]-+--------
    abuse_resolve | (30,ok)
    

    Have you had any other issues with this database? Can you copy it with dump/restore and try this on the new copy? Does explicitly qualifying the function name with the “public” schema help? Which version of PostgreSQL are you using?

    update: sql function
    It also worked fine for me using:

    create function abuse_resolve(inout __abuse_id bigint, out __msg text)
      language sql as $$ select $1, 'ok'::text $$;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm going crazy today. I just tried to insert a new record and it
First let me just state that coding without unit testing is just plain crazy.
I feel like I must be going crazy, but I just changed the name
Occasionally a program on a Windows machine goes crazy and just hangs. So I'll
I had a crazy (but so crazy that it just might work) idea where
Okay, this is just a crazy idea I have. Stack Overflow looks very structured
I'm not sure if this is a bug or just some crazy new thing
I just realized something crazy, which I assumed to be completely impossible : when
I've just started diving in to the crazy world that is perl and have
Maybe it is just a simple mistake but this thing is driving me crazy.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.