| From: | Alban Hertroys <haramrae(at)gmail(dot)com> |
|---|---|
| To: | Csanyi Pal <csanyipal(at)gmail(dot)com> |
| Cc: | pgsql-general(at)postgresql(dot)org |
| Subject: | Re: ERROR: relation "employees" does not exist |
| Date: | 2013-03-11 11:13:35 |
| Message-ID: | CAF-3MvOYgtug4UATUrixcfKagaReKhaWHTvyE7qo3C1npZ0z3A@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
On 11 March 2013 07:39, Csanyi Pal <csanyipal(at)gmail(dot)com> wrote:
> but when I run the command:
> CREATE TABLE employee_schedule (
> id serial,
> employee_id integer REFERENCES employees(id),
> start_time timestamptz,
> end_time timestamptz
> );
>
> I get an error message:
>
> NOTICE: CREATE TABLE will create implicit sequence
> "employee_schedule_id_seq" for serial column "employee_schedule.id"
> ERROR: relation "employees" does not exist
>
> So how can I solve this problem?
>
You have a foreign key reference (employee_id) to a table (employees) that
can't be found in your search_path.
--
If you can't see the forest for the trees,
Cut the trees and you'll see there is no forest.
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Albe Laurenz | 2013-03-11 11:42:36 | Re: Avoiding a deadlock |
| Previous Message | Albe Laurenz | 2013-03-11 11:06:31 | Re: restoring to different architecture with WAL |