First off, why would you want to pull a
DomainEventStream for a given Aggregate to begin with?
What’s the use case for this?
Secondly, I can assert you that changing the payload and metadata columns to be BYTEA i.o. OID (as described in the post) will not compromise your ability to retrieve an event stream.
To your problem though, I think I still need some information to figure out what’s going wrong.
What is the id you pass to the ‘EventStore#readEvent(String)’ function?
Have you tried debugging the code to figure out where it is taking a wrong or unexpected turn?
Let’s try to figure this out.