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 6991047
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T19:26:27+00:00 2026-05-27T19:26:27+00:00

The following works in PostgreSQL 8.4: insert into credentials values(‘demo’, pgp_sym_encrypt(‘password’, ‘longpassword’)); When I

  • 0

The following works in PostgreSQL 8.4:

insert into credentials values('demo', pgp_sym_encrypt('password', 'longpassword'));

When I try it in version 9.1 I get this:

ERROR: function pgp_sym_encrypt(unknown, unknown) does not exist LINE
1: insert into credentials values(‘demo’, pgp_sym_encrypt(‘pass…
^ HINT: No function matches the given name and argument types. You might need to add
explicit type casts.

*** Error ***

ERROR: function pgp_sym_encrypt(unknown, unknown) does not exist SQL
state: 42883 Hint: No function matches the given name and argument
types. You might need to add explicit type casts. Character: 40

If I try some explicit casts like this

insert into credentials values('demo', pgp_sym_encrypt(cast('password' as text), cast('longpassword' as text)))

I get a slightly different error message:

ERROR: function pgp_sym_encrypt(text, text) does not exist

I have pgcrypto installed. Does anyone have pgp_sym_encrypt() working in PostgreSQL 9.1?

  • 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-27T19:26:28+00:00Added an answer on May 27, 2026 at 7:26 pm

    One explanation could be that the module was installed into a schema that is not in your search path – or to the wrong database.
    Diagnose your problem with this query and report back the output:

    SELECT n.nspname, p.proname, pg_catalog.pg_get_function_arguments(p.oid) as params
    FROM   pg_catalog.pg_proc p
    JOIN   pg_catalog.pg_namespace n ON n.oid = p.pronamespace
    WHERE  p.proname ~~* '%pgp_sym_encrypt%'
    AND    pg_catalog.pg_function_is_visible(p.oid);
    

    Finds functions in all schemas in your database. Similar to the psql meta-command

    \df *pgp_sym_encrypt*
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

The following works in Firefox, but breaks in IE7 & 8: $(#my-first-div, #my-second-div).hide(); so
The following works in current Firefox (PDF loads), but not in current IE (page
The following works: public Date getDate() { return date; } and produces something like:
I know that the following works but it is not that readable, is there
Can somebody explain to me why the following works: template<class T> class MyTemplateClass {
Can someone explain to me why the following works for the first test but
i'm having an issue understanding why the following works: void doubleAddr(double* source, double** dest)
The following code works great in IE, but not in FF or Safari. I
the following js works fine in FF2 but in IE6 the dropdown always selects
The following code works for 90+ % of global security groups, but for one

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.