Closed kolpav closed 2 years ago
Hi @kolpav,
I'm not an postgres expert and I got this code from @roji.
@roji, can you have a look at this for me.
Yeah, that makes sense - replacing TO postgres
with TO current_user
should do it.
Thanks @roji. I'll add that to my list of things to do
Fixed in version 5.2.2
FYI
postgres
is not always currentrole_name
using value returned fromSELECT current_user;
might be more appropriate.https://github.com/JonPSmith/EfCore.TestSupport/blob/994cc0a845614805444412732685a0b4c1814930/TestSupport/EfHelpers/Internal/PostgreSqlDropSchemaEnsureClean.cs#L36