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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T00:16:51+00:00 2026-06-10T00:16:51+00:00

I have an error I’m trying to debug in a trigger function. In the

  • 0

I have an error I’m trying to debug in a trigger function. In the Postgres log, I have the following:

2012-08-16 21:41:23 PDT ERROR:  Unknown period: D
2012-08-16 21:41:23 PDT CONTEXT:  PL/pgSQL function "handle_promotion_update" 
    line 60  at assignment
SQL statement "UPDATE promotion SET some_column = foo + 1
    WHERE id = NEW.promotion_id"
PL/pgSQL function "handle_new_reward" line 94 at SQL statement

So, it seems like my problem probably starts at “line 60”

My question, is where do the line numbers start? If I go in pgAdmin and look at the function declaration it has “helper” (like delete function) at the top. So, I don’t think it’s from there. But, does it include the function declaration? Or is it just from the line with BEGIN?

  • 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-10T00:16:52+00:00Added an answer on June 10, 2026 at 12:16 am

    Line numbers that you see in the PostgreSQL server logs start at the line with the opening quotes of the function body. You have to add the lines before that to arrive at the absolute line number in the pgAdmin SQL editor.

    Don’t get confused: if you have errors while trying to create a function you get different line numbers: they refer to the executed script as a whole, while line numbers in runtime errors refer to the function body.

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

Sidebar

Related Questions

Have error ValueError: time data '2012-03-15 9:45:00 AM' does not match format '%Y-%m-%d %H:%M:%S'
I have this error when trying to generate the meta model with JOOQ: org.jooq.exception.DataAccessException:
I have an error in MVC/Controllers/ProductCOntroller.cs when trying to build solution. Need to have
I have error at the first line of the following code while building with
When I trying run Android Emulation, i Have error message: $ tools/emulator -avd Default
I have a log file with the string ERROR on some lines. I want
In the following code i have error Uncaught SyntaxError: Unexpected token ; in line
I have a strange error with my code. I am trying to show to
I have error in line: workbook.write(); When I try debug, i see massage: Source
I want insert following checkbox in a row from database table, but have error,

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.