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

  • Home
  • SEARCH
  • 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 7849651
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T18:35:42+00:00 2026-06-02T18:35:42+00:00

I am fixing some problems with a legacy system and have run into a

  • 0

I am fixing some problems with a legacy system and have run into a snag that I am surprised was not caught sooner. I am running Django 1.3 and using postgres 9.1.3 in running this application. The system is a validation system for users to use the rest of the system. It uses part of the Django users interface, but mostly it has it’s own ‘Users’.

My problem comes along when I try and give a user their account questions (similar to if you forget a password to a website). When I try to do that it throws this error:

Database Error at admin/password/user

relation "password_user_answered_questions_id_s" does not exist
LINE 1: SELECT CURRVAL('"password_user_quest...
              ^

Does anyone know what might cause this error? I have tried resetting the db (didn’t think it would do anything but just wanted to be sure) and have also poked around in the db using phppgadmin and found that everything else is getting stored correctly except this one. It is using a ManyToMany field when assigning it so that a user can have multiple questions and a question can be used by multiple users.

  • 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-06-02T18:35:45+00:00Added an answer on June 2, 2026 at 6:35 pm

    The reason is most likely that the

    relation “password_user_answered_questions_id_s” does not exist

    Just like the error message informs us. Are you aware of how PostgreSQL handles identifiers?

    Also, sequences are usually named *_seq. Letters missing from the end?


    About maximum length of identifiers – I quote the manual from the link above:

    The system uses no more than NAMEDATALEN-1 bytes of an identifier;
    longer names can be written in commands, but they will be truncated.
    By default, NAMEDATALEN is 64 so the maximum identifier length is 63
    bytes. If this limit is problematic, it can be raised by changing the
    NAMEDATALEN constant in src/include/pg_config_manual.h.

    Bold emphasis mine. Seems like you should shorten your identifiers a bit.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've run into some interesting code in our legacy application running under Internet Explorer.
I have some data that I've divided into enough groupings that standard boxplots look
I have two problems with the below code that I need help fixing: 1)
I am fixing some printing (plotter) problems in our java code(windows 32). The paper
We're doing some code cleanup, fixing signed/unsigned comparisons, running static analysis, etc, on the
I am currently working on fixing a c# codebase which does not have a
Im developing a simple app (1 page) and I'm running into an interesting snag.
I have a frame that never had any problems before. Now when I am
In fixing a website for someone, I've run into the following problem: In order
I am dealing with some HTML text that I basically have read access to.

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.