Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • Below is the error that getting white importing a csv file--- ERROR: record "new" is not assigned yet DETAIL: The tuple structure of a not-yet-assigned record is indeterminate. CONTEXT: PL/pgSQL function fun_gen() line 3 at IF Commented May 12, 2017 at 10:38
  • @stacky: sorry, forgot to add the for each row option. This only works with a row level trigger Commented May 12, 2017 at 10:50
  • Hey thanks for the answer, its working fine, but as I import every csv file, its skipping the 1st record, was it due to this function and trigger or out of this pretext? Commented May 12, 2017 at 11:40
  • @stacky: that must be something with the way you import your data. Commented May 12, 2017 at 11:47