Can you show the complete command you are running? Again, what you’ve provided looks like what Kubernetes will return if you attempt to retrieve logs from an initializing pod without specifying the container. The command should look like:
kubectl logs JOB_POD -c wait-for-postgres
The -c wait-for-postgres is critical; you will not get useful information without it.