English speaking PostgreSQL public chat. This group is for discussions on PostgreSQL-related topics and strives to provide best-effort support as well.
Hello, there is a code doing a transaction with a commit at the end. This commit is taking 45min to complete. At progress side, commit was active and no wait event. We figured out by debugging the code that there were triggers fired taking long time. Is there anyway to identify this case in postgres? Commit doesn't allow explain plan.
Читать полностью…Hi, I am looking for blockchain developers and interface developers, as well as beta testers, write in private messages
Читать полностью…I think
bluth=> \d ilya
Did not find any relation named "ilya".
bluth=>
Not helpful. What is the exact(!) query. What is the exact relation name.
Читать полностью…In fact, you'd better to collect the exact info about your errors — to know at least what should be fixed.
Not your impressions, not some other's retelling of their experience — but the exact errors and the exact code leading to them.
My understanding is the SQL standard lets DBMSes choose to uppercase or lowercase unquoted identifiers. So it's quite possible that Oracle does the opposite of PostgreSQL. And if you are using some form to DB Link from Oracle to PostgreSQL, I doubt there is any solution other than quoting your identifiers.
Читать полностью…Btw,
SELECT * FROM OWNER.TABLE;
SELECT * FROM "owner"."table"
And patroni is the worst, of course.
(Others aren't of much use, but not a much damage either).
You sure that this is not your application?
Is the table uppercase or lowercase in the database?
And if it's lowercase and you don't quote, you can write the object name any way you want.
OwNeR.tAbLe ...
we have support, but the response is slow.. so just checking anyone else faced this earlier
Читать полностью…I don't understand what case sensitive is the problem here. Maybe provide an example.
Also don't you have a support contract with EDB?
It's not only QUITE Possible, but 100% TRUE. Oracle stores everything as UPPERCASE by default, and PG as lowercase by default. Which, should not matter UNLESS you have QUOTED things.
If NONE of your queries quote things, (especially the exports), then it should work.
The problem is that any tools that generate QUOTED object names will quote them to UPPER in Oracle, and to LOWER in PG, which means those queries cannot be moved from one to the other.
the COOL part is that if there are no quotes, then:
Select * from SomeSchema.SomeTable; Works in both places without quotes assuming the names were never quoted when created.
https://www.packtpub.com/en-gb/product/postgresql-16-administration-cookbook-9781835460580
Читать полностью…Can anyone share backup strategy ?
Implementation steps and scripts
Postgres doesn't have that error message. Not even some error message, that this text could be part of.
Читать полностью…we are getting “relation does not exist” error in postgres..
Читать полностью…First of all, figure out what exactly is sent to the database. With or without quotes.
Читать полностью…understood guys.. i will ask the app team to change their code..
Читать полностью…Now whatever framework you are using might quote every qualifier, and send "SCHEMA"."TABLE" to the database. And that object, with this exact name, does not exist.
Читать полностью…You write:it comes to postgres db as select * from OWNER.TABLE
This is an application problem, not a database problem.
But as long as you write SCHEMA.TABLE and not "SCHEMA"."TABLE", you are fine.
postgres tables are in lower case.. but i am not sure, why when we trigger from oracle db, it comes as Uppercase and fails..
Читать полностью…There is no config setting in PostgreSQL that I'm aware of which alters the case handling of identifiers.
If you are mixing cases, then quoting those identifiers is what you need to do, I believe the SQL standard defines this.
Maybe EPAS has options given there Oracle compat features, but I would not be surprised if they did not.
TBH string replace on schema.identifier to quote them, does not seem a huge problem. Just get on and fix the code IMHO.
when we query something like select *from owner.table, it comes to postgres db as select * from OWNER.TABLE.. so our query fails.. if we use select * from “owner”.”table”, it gets success
Читать полностью…is there any easy way that our oracle db can access postgres data without changing the existing code??
Читать полностью…