I would like to know the locks that the COPY method may require. When I run it, I see that it uses the lock SHARE ACCESS, I would like to know if it is the only one.
I also would like to know the difference between COPY and pg_dump. Do they use the same methods under the hood? Do they need the same locks? Can they use the same transaction isolation level?