Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERROR: relation with OID 0 does not exist #2043

Open
mecampbellsoup opened this issue Mar 20, 2019 · 0 comments
Open

ERROR: relation with OID 0 does not exist #2043

mecampbellsoup opened this issue Mar 20, 2019 · 0 comments

Comments

@mecampbellsoup
Copy link

mecampbellsoup commented Mar 20, 2019

Whenever I use Postgres' \ir to import my pipelinedb SQL script(s), errors like this show up:

2019-03-20 17:50:14.701 EDT [11573] lusca@lusca ERROR:  relation with OID 0 does not exist
2019-03-20 17:50:14.701 EDT [11573] lusca@lusca STATEMENT:  DROP TRIGGER process_response_trg ON lusca.responses;
2019-03-20 17:50:14.707 EDT [11573] lusca@lusca ERROR:  could not open relation with OID 0
2019-03-20 17:50:14.707 EDT [11573] lusca@lusca STATEMENT:  DROP VIEW lusca.http_fetch;
2019-03-20 17:50:14.707 EDT [11573] lusca@lusca ERROR:  could not open relation with OID 0
2019-03-20 17:50:14.707 EDT [11573] lusca@lusca STATEMENT:  DROP VIEW lusca.http_fetch;

However, if i just read the script directly e.g. psql < pipelinedb.sql then these errors don't occur.

Any clue why this might be happening? I'd like to \ir pipelinedb.sql in my main.sql file so that I have one entrypoint to a collection of files, but it's not a huge deal since I can always just move everything from pipelinedb.sql to main.sql.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant