"Sebastjan Trepca" <trepca(at)gmail(dot)com> writes:
> Current state:
> Table B has a primary key with sequence b_seq. Table A also has a
> primary key with sequence a_seq.
In view of the fact that primary keys aren't inherited, and do not
"have sequences", this description is uselessly imprecise. Please show
exactly how you created these two tables. And which PG version is this?
regards, tom lane