makara
makara copied to clipboard
Getting error for adapter 'makara_postgresql' but working fine with 'postgresql_makara'
Initially, I used makara_postgresql
as the adapter. The reads were fine and being distributed across the replicas, but was getting the error for writing 'new' records ->PG::UndefinedTable: ERROR: missing FROM-clause entry for a table when using joins and where
.
I then read the Readme, and it was specified that the adapter format is {db_name}_makara
. Changing the adapter name to postgresql_makara
solved the problem and all writes were fine.
To understand how it's working, I dug the list of available adapters and found both postgresql_makara
and makara_postgresql
are present with the exact same content (and calling to ActiveRecord's postgresql_connection
).
Can someone help me understand out why one adapter is throwing the error but other is working just fine even though the content is same!