-
Notifications
You must be signed in to change notification settings - Fork 5
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
Usage question for "IMPORT SCHEMA" #13
Comments
Please post the output after setting the DEBUG level: SET client_min_messages TO DEBUG1; It might also worth to see the messages emitted by DEBUG5, but be sure to use the latest version of |
Here is the output for DEBUG5:
Manually executing the query also returns zero rows, something is really weird. If I manually query systables with dbaccess for 'hpatneu' I get:
Do you see anything which could kill the other query? |
Ups, I did have a typo there -- arg :D |
Actually, would it be possible to throw some kind of error if the requested tables are not found instead of silently ignoring them? |
I don't think so. I deliberately choose this way to avoid the annoyance of programmatically imported Informix schemas which could be empty (scripts, migration, ...) and play around with SAVEPOINTs to make them safe enough. But we could have a WARNING or at least a NOTICE to tell the user something is possibly not the way he expects. |
What might save someone else some head scratching and debugging is to mention that remote_schema in import foreign schema remote_schema is actually the owner of the informix tables on the informix server.
|
See also the IDS documentation for CREATE SCHEMA, e.g. https://www.ibm.com/support/knowledgecenter/SSGU8G_11.70.0/com.ibm.sqls.doc/ids_sqs_0483.htm |
According to the postgres docs, the remote_schema is defined by the FDW itself, I am not sure what to put in there…
I tried a few things and all I get is:
and no table is imported (also no error if the table name is wrong).
If I just do:
I get all tables \o/ (that said I am still not sure about the schema)
The text was updated successfully, but these errors were encountered: