Re: find the sequence name from schema, table, field

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



johnf wrote:

> I have to go to the well and ask you guys how in the he_l I can determine the 
> sequence name if I only have the schema name (normally 'public'), the table 
> name, and the field name (normally the PK).

pg_get_serial_sequence()

-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

---------------------------(end of broadcast)---------------------------
TIP 4: Have you searched our list archives?

               http://archives.postgresql.org

[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux