Saranya Sivakumar <sarlavk(at)yahoo(dot)com> writes:
> pg_restore: [custom archiver] could not read data block -- expected 1, got 0
> This is the restore command in the script file
> pg_restore -e -v -U $USER -d $DBNAME -t $table $data_file 2>> $LOGFILE
Can you put together a small self-contained test case demonstrating this
behavior? It sounds like a bug to me.
regards, tom lane