pg_sql | Unsorted

Telegram-канал pg_sql - PostgreSQL

2830

English speaking PostgreSQL public chat. This group is for discussions on PostgreSQL-related topics and strives to provide best-effort support as well.

Subscribe to a channel

PostgreSQL

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.

Читать полностью…

PostgreSQL

Where can I start with learning PostgresSQL?

Читать полностью…

PostgreSQL

Hi, I am looking for blockchain developers and interface developers, as well as beta testers, write in private messages

Читать полностью…

PostgreSQL

Any documents ,it will be really helpful

Читать полностью…

PostgreSQL

I think

bluth=> \d ilya
Did not find any relation named "ilya".
bluth=>

is close enough ;-)

Читать полностью…

PostgreSQL

Not helpful. What is the exact(!) query. What is the exact relation name.

Читать полностью…

PostgreSQL

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.

Читать полностью…

PostgreSQL

Thanks for all the help

Читать полностью…

PostgreSQL

But could be created!

Читать полностью…

PostgreSQL

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.

Читать полностью…

PostgreSQL

Btw,

SELECT * FROM OWNER.TABLE;

is exactly the same query as
SELECT * FROM "owner"."table"

in postgres.

Читать полностью…

PostgreSQL

And patroni is the worst, of course.
(Others aren't of much use, but not a much damage either).

Читать полностью…

PostgreSQL

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 ...

Читать полностью…

PostgreSQL

we have support, but the response is slow.. so just checking anyone else faced this earlier

Читать полностью…

PostgreSQL

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?

Читать полностью…

PostgreSQL

Just about anywhere if you have internet.

Читать полностью…

PostgreSQL

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.

Читать полностью…

PostgreSQL

https://www.packtpub.com/en-gb/product/postgresql-16-administration-cookbook-9781835460580

Читать полностью…

PostgreSQL

Can anyone share backup strategy ?
Implementation steps and scripts

Читать полностью…

PostgreSQL

Postgres doesn't have that error message. Not even some error message, that this text could be part of.

Читать полностью…

PostgreSQL

we are getting “relation does not exist” error in postgres..

Читать полностью…

PostgreSQL

First of all, figure out what exactly is sent to the database. With or without quotes.

Читать полностью…

PostgreSQL

understood guys.. i will ask the app team to change their code..

Читать полностью…

PostgreSQL

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.

Читать полностью…

PostgreSQL

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.

Читать полностью…

PostgreSQL

postgres tables are in lower case.. but i am not sure, why when we trigger from oracle db, it comes as Uppercase and fails..

Читать полностью…

PostgreSQL

Best not to use any automatic failover!

Читать полностью…

PostgreSQL

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.

Читать полностью…

PostgreSQL

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

Читать полностью…

PostgreSQL

is there any easy way that our oracle db can access postgres data without changing the existing code??

Читать полностью…
Subscribe to a channel