Re: explicit cast error
От | Stephan Szabo |
---|---|
Тема | Re: explicit cast error |
Дата | |
Msg-id | 20020705100744.S27855-100000@megazone23.bigpanda.com обсуждение исходный текст |
Ответ на | explicit cast error (Lynn David Newton <lynn.newton@cox.net>) |
Ответы |
Re: explicit cast error
|
Список | pgsql-general |
On Thu, 4 Jul 2002, Lynn David Newton wrote: > Having said that ... I'm charged with putting together > what seems to be a fairly straightforward database of > so far five tables. Most things are working all right, > but I have a hump to get over. I have a table > definition that is structurally idential to the > following (with actual field, table names, and comments > changed/removed because the project is company > confidential): > > create table abc > ( > c1 serial not null primary key, > c2 smallint not null, > lab text not null, > dlab text not null, > bdigits bigint null, > foreign key (bdigits) references def > ); > > Never mind the table def for right now. Well, actually, it'd be useful to know how the primary key for def is defined since you're doing a references constraint to it (since you have not specified a column set it'll point to the primary key of the other table). I'd suggest as a first step turning on query printing in the logs so you can see if it's your query or the query being run for the foreign keys or some other query that is causing the problem. I think you can do this by setting debug_print_query to true in the postgresql.conf in your data directory.
В списке pgsql-general по дате отправления: