Invoice increment - Mailing list pgsql-general

From Søren Frisk
Subject Invoice increment
Date
Msg-id CACe3Kr6jhD4BKv74bs7f3K6FDq7KM_QvCy3s35Dm8gfi5By9Xg@mail.gmail.com
Whole thread Raw
Responses Re: Invoice increment  (Sándor Daku <daku.sandor@gmail.com>)
Re: Invoice increment  (Vik Fearing <vik@postgresfriends.org>)
Re: Invoice increment  ("Peter J. Holzer" <hjp-pgsql@hjp.at>)
List pgsql-general
Hi all

I'm trying to find a way to increment an invoice number. And i think it would be pretty straight forward just using a SERIAL int. But as we're selling across multiple countries, i need the invoice increment to be reset by a country_id. any good way to achieve this in a dynamic way? 
Hope this is the right place to ask.

pgsql-general by date:

Previous
From: Ian Barwick
Date:
Subject: Re: Highly academic: local etcd & Patroni Cluster for testing on asingle host
Next
From: Paul Förster
Date:
Subject: Re: Highly academic: local etcd & Patroni Cluster for testing on asingle host