Improve CHECK failure message

Поиск
Список
Период
Сортировка
Искать

Improve CHECK failure message

От:
"Christopher Kings-Lynne" <chriskl@familyhealth.com.au>
Дата:
Вложения:
Change messages like this:

ERROR:  ExecInsert: rejected due to CHECK constraint insert_con

To be like this:

ERROR:  ExecInsert: rejected due to CHECK constraint "insert_con" on
"insert_tbl"

Updated regression tests to match.

I got sick of seeing 'rejected due to CHECK constraint "$1" in my log and
not being able to find the bug in our website code...

Chris

Re: Improve CHECK failure message

От:
Bruce Momjian <pgman@candle.pha.pa.us>
Дата:

Your patch has been added to the PostgreSQL unapplied patches list at:

	http://candle.pha.pa.us/cgi-bin/pgpatches

I will try to apply it within the next 48 hours.

---------------------------------------------------------------------------


Christopher Kings-Lynne wrote:
> Change messages like this:
> 
> ERROR:  ExecInsert: rejected due to CHECK constraint insert_con
> 
> To be like this:
> 
> ERROR:  ExecInsert: rejected due to CHECK constraint "insert_con" on
> "insert_tbl"
> 
> Updated regression tests to match.
> 
> I got sick of seeing 'rejected due to CHECK constraint "$1" in my log and
> not being able to find the bug in our website code...
> 
> Chris

[ Attachment, skipping... ]

> 
> ---------------------------(end of broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026

Re: Improve CHECK failure message

От:
Bruce Momjian <pgman@candle.pha.pa.us>
Дата:

Patch applied.  Thanks.

---------------------------------------------------------------------------



Christopher Kings-Lynne wrote:
> Change messages like this:
> 
> ERROR:  ExecInsert: rejected due to CHECK constraint insert_con
> 
> To be like this:
> 
> ERROR:  ExecInsert: rejected due to CHECK constraint "insert_con" on
> "insert_tbl"
> 
> Updated regression tests to match.
> 
> I got sick of seeing 'rejected due to CHECK constraint "$1" in my log and
> not being able to find the bug in our website code...
> 
> Chris

[ Attachment, skipping... ]

> 
> ---------------------------(end of broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026
FAQ