Project

General

Profile

« Previous | Next » 

Revision 7055

schemas/vegbien.sql: Added covering indexes where needed, as described at <https://projects.nceas.ucsb.edu/nceas/issues/549>

View differences:

vegbien.sql
6088 6088

  
6089 6089

  
6090 6090
--
6091
-- Name: address_organization_id_idx; Type: INDEX; Schema: public; Owner: -; Tablespace: 
6092
--
6093

  
6094
CREATE INDEX address_organization_id_idx ON address USING btree (organization_id);
6095

  
6096

  
6097
--
6098
-- Name: address_party_id_idx; Type: INDEX; Schema: public; Owner: -; Tablespace: 
6099
--
6100

  
6101
CREATE INDEX address_party_id_idx ON address USING btree (party_id);
6102

  
6103

  
6104
--
6105
-- Name: aggregateoccurrence_coverindex_id_idx; Type: INDEX; Schema: public; Owner: -; Tablespace: 
6106
--
6107

  
6108
CREATE INDEX aggregateoccurrence_coverindex_id_idx ON aggregateoccurrence USING btree (coverindex_id);
6109

  
6110

  
6111
--
6112
-- Name: aggregateoccurrence_method_id_idx; Type: INDEX; Schema: public; Owner: -; Tablespace: 
6113
--
6114

  
6115
CREATE INDEX aggregateoccurrence_method_id_idx ON aggregateoccurrence USING btree (method_id);
6116

  
6117

  
6118
--
6091 6119
-- Name: aggregateoccurrence_source_id_idx; Type: INDEX; Schema: public; Owner: -; Tablespace: 
6092 6120
--
6093 6121

  
......
6095 6123

  
6096 6124

  
6097 6125
--
6126
-- Name: aggregateoccurrence_stratum_id_idx; Type: INDEX; Schema: public; Owner: -; Tablespace: 
6127
--
6128

  
6129
CREATE INDEX aggregateoccurrence_stratum_id_idx ON aggregateoccurrence USING btree (stratum_id);
6130

  
6131

  
6132
--
6098 6133
-- Name: aggregateoccurrence_taxonoccurrence; Type: INDEX; Schema: public; Owner: -; Tablespace: 
6099 6134
--
6100 6135

  
......
6144 6179

  
6145 6180

  
6146 6181
--
6182
-- Name: classcontributor_commclass_id_idx; Type: INDEX; Schema: public; Owner: -; Tablespace: 
6183
--
6184

  
6185
CREATE INDEX classcontributor_commclass_id_idx ON classcontributor USING btree (commclass_id);
6186

  
6187

  
6188
--
6189
-- Name: classcontributor_party_id_idx; Type: INDEX; Schema: public; Owner: -; Tablespace: 
6190
--
6191

  
6192
CREATE INDEX classcontributor_party_id_idx ON classcontributor USING btree (party_id);
6193

  
6194

  
6195
--
6147 6196
-- Name: commclass_accessioncode_index; Type: INDEX; Schema: public; Owner: -; Tablespace: 
6148 6197
--
6149 6198

  
......
6151 6200

  
6152 6201

  
6153 6202
--
6203
-- Name: commclass_classpublication_id_idx; Type: INDEX; Schema: public; Owner: -; Tablespace: 
6204
--
6205

  
6206
CREATE INDEX commclass_classpublication_id_idx ON commclass USING btree (classpublication_id);
6207

  
6208

  
6209
--
6154 6210
-- Name: commclass_unique; Type: INDEX; Schema: public; Owner: -; Tablespace: 
6155 6211
--
6156 6212

  
......
6165 6221

  
6166 6222

  
6167 6223
--
6224
-- Name: commconcept_reference_id_idx; Type: INDEX; Schema: public; Owner: -; Tablespace: 
6225
--
6226

  
6227
CREATE INDEX commconcept_reference_id_idx ON commconcept USING btree (reference_id);
6228

  
6229

  
6230
--
6231
-- Name: commcorrelation_commconcept_id_idx; Type: INDEX; Schema: public; Owner: -; Tablespace: 
6232
--
6233

  
6234
CREATE INDEX commcorrelation_commconcept_id_idx ON commcorrelation USING btree (commconcept_id);
6235

  
6236

  
6237
--
6238
-- Name: commcorrelation_commstatus_id_idx; Type: INDEX; Schema: public; Owner: -; Tablespace: 
6239
--
6240

  
6241
CREATE INDEX commcorrelation_commstatus_id_idx ON commcorrelation USING btree (commstatus_id);
6242

  
6243

  
6244
--
6245
-- Name: commdetermination_commauthority_id_idx; Type: INDEX; Schema: public; Owner: -; Tablespace: 
6246
--
6247

  
6248
CREATE INDEX commdetermination_commauthority_id_idx ON commdetermination USING btree (commauthority_id);
6249

  
6250

  
6251
--
6252
-- Name: commdetermination_commconcept_id_idx; Type: INDEX; Schema: public; Owner: -; Tablespace: 
6253
--
6254

  
6255
CREATE INDEX commdetermination_commconcept_id_idx ON commdetermination USING btree (commconcept_id);
6256

  
6257

  
6258
--
6259
-- Name: commlineage_childcommstatus_id_idx; Type: INDEX; Schema: public; Owner: -; Tablespace: 
6260
--
6261

  
6262
CREATE INDEX commlineage_childcommstatus_id_idx ON commlineage USING btree (childcommstatus_id);
6263

  
6264

  
6265
--
6266
-- Name: commlineage_parentcommstatus_id_idx; Type: INDEX; Schema: public; Owner: -; Tablespace: 
6267
--
6268

  
6269
CREATE INDEX commlineage_parentcommstatus_id_idx ON commlineage USING btree (parentcommstatus_id);
6270

  
6271

  
6272
--
6273
-- Name: commname_source_id_idx; Type: INDEX; Schema: public; Owner: -; Tablespace: 
6274
--
6275

  
6276
CREATE INDEX commname_source_id_idx ON commname USING btree (source_id);
6277

  
6278

  
6279
--
6168 6280
-- Name: commstatus_accessioncode_index; Type: INDEX; Schema: public; Owner: -; Tablespace: 
6169 6281
--
6170 6282

  
......
6172 6284

  
6173 6285

  
6174 6286
--
6287
-- Name: commstatus_commconcept_id_idx; Type: INDEX; Schema: public; Owner: -; Tablespace: 
6288
--
6289

  
6290
CREATE INDEX commstatus_commconcept_id_idx ON commstatus USING btree (commconcept_id);
6291

  
6292

  
6293
--
6294
-- Name: commstatus_commparent_id_idx; Type: INDEX; Schema: public; Owner: -; Tablespace: 
6295
--
6296

  
6297
CREATE INDEX commstatus_commparent_id_idx ON commstatus USING btree (commparent_id);
6298

  
6299

  
6300
--
6301
-- Name: commstatus_party_id_idx; Type: INDEX; Schema: public; Owner: -; Tablespace: 
6302
--
6303

  
6304
CREATE INDEX commstatus_party_id_idx ON commstatus USING btree (party_id);
6305

  
6306

  
6307
--
6308
-- Name: commstatus_source_id_idx; Type: INDEX; Schema: public; Owner: -; Tablespace: 
6309
--
6310

  
6311
CREATE INDEX commstatus_source_id_idx ON commstatus USING btree (source_id);
6312

  
6313

  
6314
--
6315
-- Name: commusage_commconcept_id_idx; Type: INDEX; Schema: public; Owner: -; Tablespace: 
6316
--
6317

  
6318
CREATE INDEX commusage_commconcept_id_idx ON commusage USING btree (commconcept_id);
6319

  
6320

  
6321
--
6322
-- Name: commusage_commname_id_idx; Type: INDEX; Schema: public; Owner: -; Tablespace: 
6323
--
6324

  
6325
CREATE INDEX commusage_commname_id_idx ON commusage USING btree (commname_id);
6326

  
6327

  
6328
--
6329
-- Name: commusage_commstatus_id_idx; Type: INDEX; Schema: public; Owner: -; Tablespace: 
6330
--
6331

  
6332
CREATE INDEX commusage_commstatus_id_idx ON commusage USING btree (commstatus_id);
6333

  
6334

  
6335
--
6336
-- Name: commusage_party_id_idx; Type: INDEX; Schema: public; Owner: -; Tablespace: 
6337
--
6338

  
6339
CREATE INDEX commusage_party_id_idx ON commusage USING btree (party_id);
6340

  
6341

  
6342
--
6175 6343
-- Name: coordinates_unique; Type: INDEX; Schema: public; Owner: -; Tablespace: 
6176 6344
--
6177 6345

  
......
6179 6347

  
6180 6348

  
6181 6349
--
6350
-- Name: coverindex_covermethod_id_idx; Type: INDEX; Schema: public; Owner: -; Tablespace: 
6351
--
6352

  
6353
CREATE INDEX coverindex_covermethod_id_idx ON coverindex USING btree (covermethod_id);
6354

  
6355

  
6356
--
6182 6357
-- Name: covermethod_accessioncode_index; Type: INDEX; Schema: public; Owner: -; Tablespace: 
6183 6358
--
6184 6359

  
......
6186 6361

  
6187 6362

  
6188 6363
--
6364
-- Name: covermethod_source_id_idx; Type: INDEX; Schema: public; Owner: -; Tablespace: 
6365
--
6366

  
6367
CREATE INDEX covermethod_source_id_idx ON covermethod USING btree (source_id);
6368

  
6369

  
6370
--
6371
-- Name: disturbanceobs_locationevent_id_idx; Type: INDEX; Schema: public; Owner: -; Tablespace: 
6372
--
6373

  
6374
CREATE INDEX disturbanceobs_locationevent_id_idx ON disturbanceobs USING btree (locationevent_id);
6375

  
6376

  
6377
--
6189 6378
-- Name: graphic_accessioncode_index; Type: INDEX; Schema: public; Owner: -; Tablespace: 
6190 6379
--
6191 6380

  
......
6193 6382

  
6194 6383

  
6195 6384
--
6385
-- Name: graphic_locationevent_id_idx; Type: INDEX; Schema: public; Owner: -; Tablespace: 
6386
--
6387

  
6388
CREATE INDEX graphic_locationevent_id_idx ON graphic USING btree (locationevent_id);
6389

  
6390

  
6391
--
6196 6392
-- Name: higher_plant_group_nodes_unique; Type: INDEX; Schema: public; Owner: -; Tablespace: 
6197 6393
--
6198 6394

  
......
6256 6452

  
6257 6453

  
6258 6454
--
6455
-- Name: locationevent_method_id_idx; Type: INDEX; Schema: public; Owner: -; Tablespace: 
6456
--
6457

  
6458
CREATE INDEX locationevent_method_id_idx ON locationevent USING btree (method_id);
6459

  
6460

  
6461
--
6462
-- Name: locationevent_parent_id_idx; Type: INDEX; Schema: public; Owner: -; Tablespace: 
6463
--
6464

  
6465
CREATE INDEX locationevent_parent_id_idx ON locationevent USING btree (parent_id);
6466

  
6467

  
6468
--
6469
-- Name: locationevent_previous_id_idx; Type: INDEX; Schema: public; Owner: -; Tablespace: 
6470
--
6471

  
6472
CREATE INDEX locationevent_previous_id_idx ON locationevent USING btree (previous_id);
6473

  
6474

  
6475
--
6476
-- Name: locationevent_project_id_idx; Type: INDEX; Schema: public; Owner: -; Tablespace: 
6477
--
6478

  
6479
CREATE INDEX locationevent_project_id_idx ON locationevent USING btree (project_id);
6480

  
6481

  
6482
--
6483
-- Name: locationevent_soiltaxon_id_idx; Type: INDEX; Schema: public; Owner: -; Tablespace: 
6484
--
6485

  
6486
CREATE INDEX locationevent_soiltaxon_id_idx ON locationevent USING btree (soiltaxon_id);
6487

  
6488

  
6489
--
6259 6490
-- Name: locationevent_source_id_idx; Type: INDEX; Schema: public; Owner: -; Tablespace: 
6260 6491
--
6261 6492

  
......
6298 6529

  
6299 6530

  
6300 6531
--
6532
-- Name: locationeventcontributor_locationevent_id_idx; Type: INDEX; Schema: public; Owner: -; Tablespace: 
6533
--
6534

  
6535
CREATE INDEX locationeventcontributor_locationevent_id_idx ON locationeventcontributor USING btree (locationevent_id);
6536

  
6537

  
6538
--
6539
-- Name: locationeventcontributor_party_id_idx; Type: INDEX; Schema: public; Owner: -; Tablespace: 
6540
--
6541

  
6542
CREATE INDEX locationeventcontributor_party_id_idx ON locationeventcontributor USING btree (party_id);
6543

  
6544

  
6545
--
6301 6546
-- Name: locationeventsynonym_accessioncode_index; Type: INDEX; Schema: public; Owner: -; Tablespace: 
6302 6547
--
6303 6548

  
......
6305 6550

  
6306 6551

  
6307 6552
--
6553
-- Name: locationeventsynonym_party_id_idx; Type: INDEX; Schema: public; Owner: -; Tablespace: 
6554
--
6555

  
6556
CREATE INDEX locationeventsynonym_party_id_idx ON locationeventsynonym USING btree (party_id);
6557

  
6558

  
6559
--
6560
-- Name: locationeventsynonym_primarylocationevent_id_idx; Type: INDEX; Schema: public; Owner: -; Tablespace: 
6561
--
6562

  
6563
CREATE INDEX locationeventsynonym_primarylocationevent_id_idx ON locationeventsynonym USING btree (primarylocationevent_id);
6564

  
6565

  
6566
--
6567
-- Name: locationeventsynonym_synonymlocationevent_id_idx; Type: INDEX; Schema: public; Owner: -; Tablespace: 
6568
--
6569

  
6570
CREATE INDEX locationeventsynonym_synonymlocationevent_id_idx ON locationeventsynonym USING btree (synonymlocationevent_id);
6571

  
6572

  
6573
--
6574
-- Name: locationplace_identifier_id_idx; Type: INDEX; Schema: public; Owner: -; Tablespace: 
6575
--
6576

  
6577
CREATE INDEX locationplace_identifier_id_idx ON locationplace USING btree (identifier_id);
6578

  
6579

  
6580
--
6581
-- Name: locationplace_place_id_idx; Type: INDEX; Schema: public; Owner: -; Tablespace: 
6582
--
6583

  
6584
CREATE INDEX locationplace_place_id_idx ON locationplace USING btree (place_id);
6585

  
6586

  
6587
--
6308 6588
-- Name: locationplace_unique; Type: INDEX; Schema: public; Owner: -; Tablespace: 
6309 6589
--
6310 6590

  
......
6319 6599

  
6320 6600

  
6321 6601
--
6602
-- Name: method_covermethod_id_idx; Type: INDEX; Schema: public; Owner: -; Tablespace: 
6603
--
6604

  
6605
CREATE INDEX method_covermethod_id_idx ON method USING btree (covermethod_id);
6606

  
6607

  
6608
--
6609
-- Name: method_subplotmethod_id_idx; Type: INDEX; Schema: public; Owner: -; Tablespace: 
6610
--
6611

  
6612
CREATE INDEX method_subplotmethod_id_idx ON method USING btree (subplotmethod_id);
6613

  
6614

  
6615
--
6322 6616
-- Name: method_unique; Type: INDEX; Schema: public; Owner: -; Tablespace: 
6323 6617
--
6324 6618

  
......
6326 6620

  
6327 6621

  
6328 6622
--
6623
-- Name: methodtaxonclass_submethod_id_idx; Type: INDEX; Schema: public; Owner: -; Tablespace: 
6624
--
6625

  
6626
CREATE INDEX methodtaxonclass_submethod_id_idx ON methodtaxonclass USING btree (submethod_id);
6627

  
6628

  
6629
--
6630
-- Name: methodtaxonclass_taxonlabel_id_idx; Type: INDEX; Schema: public; Owner: -; Tablespace: 
6631
--
6632

  
6633
CREATE INDEX methodtaxonclass_taxonlabel_id_idx ON methodtaxonclass USING btree (taxonlabel_id);
6634

  
6635

  
6636
--
6329 6637
-- Name: note_accessioncode_index; Type: INDEX; Schema: public; Owner: -; Tablespace: 
6330 6638
--
6331 6639

  
......
6333 6641

  
6334 6642

  
6335 6643
--
6644
-- Name: note_notelink_id_idx; Type: INDEX; Schema: public; Owner: -; Tablespace: 
6645
--
6646

  
6647
CREATE INDEX note_notelink_id_idx ON note USING btree (notelink_id);
6648

  
6649

  
6650
--
6651
-- Name: note_party_id_idx; Type: INDEX; Schema: public; Owner: -; Tablespace: 
6652
--
6653

  
6654
CREATE INDEX note_party_id_idx ON note USING btree (party_id);
6655

  
6656

  
6657
--
6336 6658
-- Name: party_accessioncode_index; Type: INDEX; Schema: public; Owner: -; Tablespace: 
6337 6659
--
6338 6660

  
......
6340 6662

  
6341 6663

  
6342 6664
--
6665
-- Name: party_currentname_id_idx; Type: INDEX; Schema: public; Owner: -; Tablespace: 
6666
--
6667

  
6668
CREATE INDEX party_currentname_id_idx ON party USING btree (currentname_id);
6669

  
6670

  
6671
--
6343 6672
-- Name: party_source_id_idx; Type: INDEX; Schema: public; Owner: -; Tablespace: 
6344 6673
--
6345 6674

  
......
6361 6690

  
6362 6691

  
6363 6692
--
6693
-- Name: partymember_childparty_id_idx; Type: INDEX; Schema: public; Owner: -; Tablespace: 
6694
--
6695

  
6696
CREATE INDEX partymember_childparty_id_idx ON partymember USING btree (childparty_id);
6697

  
6698

  
6699
--
6700
-- Name: partymember_parentparty_id_idx; Type: INDEX; Schema: public; Owner: -; Tablespace: 
6701
--
6702

  
6703
CREATE INDEX partymember_parentparty_id_idx ON partymember USING btree (parentparty_id);
6704

  
6705

  
6706
--
6707
-- Name: place_canon_place_id_idx; Type: INDEX; Schema: public; Owner: -; Tablespace: 
6708
--
6709

  
6710
CREATE INDEX place_canon_place_id_idx ON place USING btree (canon_place_id);
6711

  
6712

  
6713
--
6714
-- Name: place_coordinates_id_idx; Type: INDEX; Schema: public; Owner: -; Tablespace: 
6715
--
6716

  
6717
CREATE INDEX place_coordinates_id_idx ON place USING btree (coordinates_id);
6718

  
6719

  
6720
--
6364 6721
-- Name: place_matched_place_id_idx; Type: INDEX; Schema: public; Owner: -; Tablespace: 
6365 6722
--
6366 6723

  
......
6375 6732

  
6376 6733

  
6377 6734
--
6735
-- Name: placecorrelation_childplace_id_idx; Type: INDEX; Schema: public; Owner: -; Tablespace: 
6736
--
6737

  
6738
CREATE INDEX placecorrelation_childplace_id_idx ON placecorrelation USING btree (childplace_id);
6739

  
6740

  
6741
--
6742
-- Name: placecorrelation_parentplace_id_idx; Type: INDEX; Schema: public; Owner: -; Tablespace: 
6743
--
6744

  
6745
CREATE INDEX placecorrelation_parentplace_id_idx ON placecorrelation USING btree (parentplace_id);
6746

  
6747

  
6748
--
6749
-- Name: placename_ancestor_ancestor_id_idx; Type: INDEX; Schema: public; Owner: -; Tablespace: 
6750
--
6751

  
6752
CREATE INDEX placename_ancestor_ancestor_id_idx ON placename_ancestor USING btree (ancestor_id);
6753

  
6754

  
6755
--
6756
-- Name: placename_parent_id_idx; Type: INDEX; Schema: public; Owner: -; Tablespace: 
6757
--
6758

  
6759
CREATE INDEX placename_parent_id_idx ON placename USING btree (parent_id);
6760

  
6761

  
6762
--
6378 6763
-- Name: placename_unique; Type: INDEX; Schema: public; Owner: -; Tablespace: 
6379 6764
--
6380 6765

  
......
6389 6774

  
6390 6775

  
6391 6776
--
6777
-- Name: plantobservation_plant_id_idx; Type: INDEX; Schema: public; Owner: -; Tablespace: 
6778
--
6779

  
6780
CREATE INDEX plantobservation_plant_id_idx ON plantobservation USING btree (plant_id);
6781

  
6782

  
6783
--
6392 6784
-- Name: plantobservation_source_id_idx; Type: INDEX; Schema: public; Owner: -; Tablespace: 
6393 6785
--
6394 6786

  
......
6431 6823

  
6432 6824

  
6433 6825
--
6826
-- Name: projectcontributor_party_id_idx; Type: INDEX; Schema: public; Owner: -; Tablespace: 
6827
--
6828

  
6829
CREATE INDEX projectcontributor_party_id_idx ON projectcontributor USING btree (party_id);
6830

  
6831

  
6832
--
6833
-- Name: projectcontributor_project_id_idx; Type: INDEX; Schema: public; Owner: -; Tablespace: 
6834
--
6835

  
6836
CREATE INDEX projectcontributor_project_id_idx ON projectcontributor USING btree (project_id);
6837

  
6838

  
6839
--
6840
-- Name: revision_previousrevision_id_idx; Type: INDEX; Schema: public; Owner: -; Tablespace: 
6841
--
6842

  
6843
CREATE INDEX revision_previousrevision_id_idx ON revision USING btree (previousrevision_id);
6844

  
6845

  
6846
--
6434 6847
-- Name: soiltaxon_accessioncode_index; Type: INDEX; Schema: public; Owner: -; Tablespace: 
6435 6848
--
6436 6849

  
......
6438 6851

  
6439 6852

  
6440 6853
--
6854
-- Name: soiltaxon_soilparent_id_idx; Type: INDEX; Schema: public; Owner: -; Tablespace: 
6855
--
6856

  
6857
CREATE INDEX soiltaxon_soilparent_id_idx ON soiltaxon USING btree (soilparent_id);
6858

  
6859

  
6860
--
6441 6861
-- Name: source_accessioncode_index; Type: INDEX; Schema: public; Owner: -; Tablespace: 
6442 6862
--
6443 6863

  
......
6445 6865

  
6446 6866

  
6447 6867
--
6868
-- Name: source_matched_source_id_idx; Type: INDEX; Schema: public; Owner: -; Tablespace: 
6869
--
6870

  
6871
CREATE INDEX source_matched_source_id_idx ON source USING btree (matched_source_id);
6872

  
6873

  
6874
--
6875
-- Name: source_parent_id_idx; Type: INDEX; Schema: public; Owner: -; Tablespace: 
6876
--
6877

  
6878
CREATE INDEX source_parent_id_idx ON source USING btree (parent_id);
6879

  
6880

  
6881
--
6448 6882
-- Name: source_unique; Type: INDEX; Schema: public; Owner: -; Tablespace: 
6449 6883
--
6450 6884

  
......
6452 6886

  
6453 6887

  
6454 6888
--
6889
-- Name: sourcecontributor_source_id_idx; Type: INDEX; Schema: public; Owner: -; Tablespace: 
6890
--
6891

  
6892
CREATE INDEX sourcecontributor_source_id_idx ON sourcecontributor USING btree (source_id);
6893

  
6894

  
6895
--
6896
-- Name: sourcecontributor_sourceparty_id_idx; Type: INDEX; Schema: public; Owner: -; Tablespace: 
6897
--
6898

  
6899
CREATE INDEX sourcecontributor_sourceparty_id_idx ON sourcecontributor USING btree (sourceparty_id);
6900

  
6901

  
6902
--
6455 6903
-- Name: sourcelist_unique; Type: INDEX; Schema: public; Owner: -; Tablespace: 
6456 6904
--
6457 6905

  
......
6466 6914

  
6467 6915

  
6468 6916
--
6917
-- Name: specimenreplicate_institution_id_idx; Type: INDEX; Schema: public; Owner: -; Tablespace: 
6918
--
6919

  
6920
CREATE INDEX specimenreplicate_institution_id_idx ON specimenreplicate USING btree (institution_id);
6921

  
6922

  
6923
--
6469 6924
-- Name: specimenreplicate_plantobservation; Type: INDEX; Schema: public; Owner: -; Tablespace: 
6470 6925
--
6471 6926

  
......
6487 6942

  
6488 6943

  
6489 6944
--
6945
-- Name: specimenreplicate_specimen_id_idx; Type: INDEX; Schema: public; Owner: -; Tablespace: 
6946
--
6947

  
6948
CREATE INDEX specimenreplicate_specimen_id_idx ON specimenreplicate USING btree (specimen_id);
6949

  
6950

  
6951
--
6490 6952
-- Name: specimenreplicate_unique_catalognumber; Type: INDEX; Schema: public; Owner: -; Tablespace: 
6491 6953
--
6492 6954

  
......
6536 6998

  
6537 6999

  
6538 7000
--
7001
-- Name: stratum_locationevent_id_idx; Type: INDEX; Schema: public; Owner: -; Tablespace: 
7002
--
7003

  
7004
CREATE INDEX stratum_locationevent_id_idx ON stratum USING btree (locationevent_id);
7005

  
7006

  
7007
--
7008
-- Name: stratum_method_id_idx; Type: INDEX; Schema: public; Owner: -; Tablespace: 
7009
--
7010

  
7011
CREATE INDEX stratum_method_id_idx ON stratum USING btree (method_id);
7012

  
7013

  
7014
--
6539 7015
-- Name: taxon_trait_scientificName_measurementType_idx; Type: INDEX; Schema: public; Owner: -; Tablespace: 
6540 7016
--
6541 7017

  
......
6543 7019

  
6544 7020

  
6545 7021
--
7022
-- Name: taxonalt_taxondetermination_id_idx; Type: INDEX; Schema: public; Owner: -; Tablespace: 
7023
--
7024

  
7025
CREATE INDEX taxonalt_taxondetermination_id_idx ON taxonalt USING btree (taxondetermination_id);
7026

  
7027

  
7028
--
7029
-- Name: taxonalt_taxonlabel_id_idx; Type: INDEX; Schema: public; Owner: -; Tablespace: 
7030
--
7031

  
7032
CREATE INDEX taxonalt_taxonlabel_id_idx ON taxonalt USING btree (taxonlabel_id);
7033

  
7034

  
7035
--
7036
-- Name: taxonconcept_concept_reference_id_idx; Type: INDEX; Schema: public; Owner: -; Tablespace: 
7037
--
7038

  
7039
CREATE INDEX taxonconcept_concept_reference_id_idx ON taxonconcept USING btree (concept_reference_id);
7040

  
7041

  
7042
--
7043
-- Name: taxoncorrelation_taxonlabel_id_idx; Type: INDEX; Schema: public; Owner: -; Tablespace: 
7044
--
7045

  
7046
CREATE INDEX taxoncorrelation_taxonlabel_id_idx ON taxoncorrelation USING btree (taxonlabel_id);
7047

  
7048

  
7049
--
7050
-- Name: taxoncorrelation_taxonstatus_id_idx; Type: INDEX; Schema: public; Owner: -; Tablespace: 
7051
--
7052

  
7053
CREATE INDEX taxoncorrelation_taxonstatus_id_idx ON taxoncorrelation USING btree (taxonstatus_id);
7054

  
7055

  
7056
--
6546 7057
-- Name: taxondetermination_accessioncode_index; Type: INDEX; Schema: public; Owner: -; Tablespace: 
6547 7058
--
6548 7059

  
......
6550 7061

  
6551 7062

  
6552 7063
--
7064
-- Name: taxondetermination_party_id_idx; Type: INDEX; Schema: public; Owner: -; Tablespace: 
7065
--
7066

  
7067
CREATE INDEX taxondetermination_party_id_idx ON taxondetermination USING btree (party_id);
7068

  
7069

  
7070
--
6553 7071
-- Name: taxondetermination_single_current_determination; Type: INDEX; Schema: public; Owner: -; Tablespace: 
6554 7072
--
6555 7073

  
......
6564 7082

  
6565 7083

  
6566 7084
--
7085
-- Name: taxondetermination_taxonverbatim_id_idx; Type: INDEX; Schema: public; Owner: -; Tablespace: 
7086
--
7087

  
7088
CREATE INDEX taxondetermination_taxonverbatim_id_idx ON taxondetermination USING btree (taxonverbatim_id);
7089

  
7090

  
7091
--
6567 7092
-- Name: taxondetermination_unique; Type: INDEX; Schema: public; Owner: -; Tablespace: 
6568 7093
--
6569 7094

  
......
6592 7117

  
6593 7118

  
6594 7119
--
7120
-- Name: taxonlabel_canon_label_id_idx; Type: INDEX; Schema: public; Owner: -; Tablespace: 
7121
--
7122

  
7123
CREATE INDEX taxonlabel_canon_label_id_idx ON taxonlabel USING btree (canon_label_id);
7124

  
7125

  
7126
--
6595 7127
-- Name: taxonlabel_matched_label_id_idx; Type: INDEX; Schema: public; Owner: -; Tablespace: 
6596 7128
--
6597 7129

  
......
6599 7131

  
6600 7132

  
6601 7133
--
7134
-- Name: taxonlabel_parent_id_idx; Type: INDEX; Schema: public; Owner: -; Tablespace: 
7135
--
7136

  
7137
CREATE INDEX taxonlabel_parent_id_idx ON taxonlabel USING btree (parent_id);
7138

  
7139

  
7140
--
6602 7141
-- Name: taxonlabel_relationship_descendants; Type: INDEX; Schema: public; Owner: -; Tablespace: 
6603 7142
--
6604 7143

  
......
6620 7159

  
6621 7160

  
6622 7161
--
7162
-- Name: taxonlineage_childtaxonstatus_id_idx; Type: INDEX; Schema: public; Owner: -; Tablespace: 
7163
--
7164

  
7165
CREATE INDEX taxonlineage_childtaxonstatus_id_idx ON taxonlineage USING btree (childtaxonstatus_id);
7166

  
7167

  
7168
--
7169
-- Name: taxonlineage_parenttaxonstatus_id_idx; Type: INDEX; Schema: public; Owner: -; Tablespace: 
7170
--
7171

  
7172
CREATE INDEX taxonlineage_parenttaxonstatus_id_idx ON taxonlineage USING btree (parenttaxonstatus_id);
7173

  
7174

  
7175
--
6623 7176
-- Name: taxonoccurrence_accessioncode_index; Type: INDEX; Schema: public; Owner: -; Tablespace: 
6624 7177
--
6625 7178

  
......
6627 7180

  
6628 7181

  
6629 7182
--
7183
-- Name: taxonoccurrence_collector_id_idx; Type: INDEX; Schema: public; Owner: -; Tablespace: 
7184
--
7185

  
7186
CREATE INDEX taxonoccurrence_collector_id_idx ON taxonoccurrence USING btree (collector_id);
7187

  
7188

  
7189
--
6630 7190
-- Name: taxonoccurrence_locationevent; Type: INDEX; Schema: public; Owner: -; Tablespace: 
6631 7191
--
6632 7192

  
......
6662 7222

  
6663 7223

  
6664 7224
--
7225
-- Name: taxonstatus_party_id_idx; Type: INDEX; Schema: public; Owner: -; Tablespace: 
7226
--
7227

  
7228
CREATE INDEX taxonstatus_party_id_idx ON taxonstatus USING btree (party_id);
7229

  
7230

  
7231
--
7232
-- Name: taxonstatus_source_id_idx; Type: INDEX; Schema: public; Owner: -; Tablespace: 
7233
--
7234

  
7235
CREATE INDEX taxonstatus_source_id_idx ON taxonstatus USING btree (source_id);
7236

  
7237

  
7238
--
7239
-- Name: telephone_party_id_idx; Type: INDEX; Schema: public; Owner: -; Tablespace: 
7240
--
7241

  
7242
CREATE INDEX telephone_party_id_idx ON telephone USING btree (party_id);
7243

  
7244

  
7245
--
6665 7246
-- Name: trait_unique; Type: INDEX; Schema: public; Owner: -; Tablespace: 
6666 7247
--
6667 7248

  
......
6676 7257

  
6677 7258

  
6678 7259
--
7260
-- Name: voucher_specimenreplicate_id_idx; Type: INDEX; Schema: public; Owner: -; Tablespace: 
7261
--
7262

  
7263
CREATE INDEX voucher_specimenreplicate_id_idx ON voucher USING btree (specimenreplicate_id);
7264

  
7265

  
7266
--
6679 7267
-- Name: party_source_id_self_ref; Type: TRIGGER; Schema: public; Owner: -
6680 7268
--
6681 7269

  

Also available in: Unified diff