Hi Wei,
There are many aspects that comes into picture :On Tue, 19 May 2015 at 16:01 Wei Shan <weishan.ang@xxxxxxxxx> wrote:
Hi all,Today I tried to create an index online, however it took far too long that I cancelled the query.1. psql version => 9.2.42. Table structure as follows. (7.5GB in size)evocsp=# \d certificatedataTable "public.certificatedata"Column | Type | Modifiers----------------------+---------+-----------fingerprint | text | not nullbase64cert | text |cafingerprint | text |certificateprofileid | integer | not nullexpiredate | bigint | not nullissuerdn | text | not nullrevocationdate | bigint | not nullrevocationreason | integer | not nullrowprotection | text |rowversion | integer | not nullserialnumber | text | not nullstatus | integer | not nullsubjectdn | text | not nullsubjectkeyid | text |tag | text |type | integer | not nullupdatetime | bigint | not nullusername | text |Indexes:"certificatedata_pkey" PRIMARY KEY, btree (fingerprint)"certificatedata_idx7" btree (certificateprofileid)3. The query ran was => CREATE INDEX CONCURRENTLY certificatedata_idx2 ON CertificateData (username) tablespace tablespace_index;4. After it took more than 2hrs+, I went to terminate the session via Ctrl-C, it returned the following error.WARNING: canceling wait for synchronous replication due to user requestDETAIL: The transaction has already committed locally, but might not have been replicated to the standby.^CCancel request sentERROR: canceling statement due to user requestAny input or ideas are welcome.Thanks!--Regards,
Ang Wei Shan