Project

General

Profile

« Previous | Next » 

Revision 3279

schemas/vegbien.sql: Removed per-column indexes, which are no longer needed by either row-based or column-based import because they are able to do a merge join or lookup using the table's UNIQUE INDEX. Instead of forcing the database to build and maintain large indexes (15+ GB!) that are not used, optimization-only (non-UNIQUE) indexes should be added as needed only once the database is actually used for queries. In most cases it will not even be necessary to add additional indexes then, because most UNIQUE indexes can be reused for broad lookups (rather than just duplicate elimination). Even the foreign key covering indexes (fki_*) are not needed because we virtually never delete rows in the DB, and even if we were to start doing that regularly, the cost of maintaining the indexes on import is most likely not worth the speed improvements for cascading deletes.

View differences:

schemas/vegbien.my.sql
3592 3592

  
3593 3593

  
3594 3594
--
3595
-- Name: address_organization_id_x; Type: INDEX; Schema: public; Owner: -; Tablespace: 
3596
--
3597

  
3598
CREATE INDEX address_organization_id_x ON address  (organization_id);
3599

  
3600

  
3601
--
3602
-- Name: address_party_id_x; Type: INDEX; Schema: public; Owner: -; Tablespace: 
3603
--
3604

  
3605
CREATE INDEX address_party_id_x ON address  (party_id);
3606

  
3607

  
3608
--
3609
-- Name: aggregateoccurrence_taxonoccurrence_id_x; Type: INDEX; Schema: public; Owner: -; Tablespace: 
3610
--
3611

  
3612
CREATE INDEX aggregateoccurrence_taxonoccurrence_id_x ON aggregateoccurrence  (taxonoccurrence_id);
3613

  
3614

  
3615
--
3616
-- Name: classcontributor_commclass_id_x; Type: INDEX; Schema: public; Owner: -; Tablespace: 
3617
--
3618

  
3619
CREATE INDEX classcontributor_commclass_id_x ON classcontributor  (commclass_id);
3620

  
3621

  
3622
--
3623
-- Name: classcontributor_party_id_x; Type: INDEX; Schema: public; Owner: -; Tablespace: 
3624
--
3625

  
3626
CREATE INDEX classcontributor_party_id_x ON classcontributor  (party_id);
3627

  
3628

  
3629
--
3630
-- Name: classcontributor_role_id_x; Type: INDEX; Schema: public; Owner: -; Tablespace: 
3631
--
3632

  
3633
CREATE INDEX classcontributor_role_id_x ON classcontributor  (role);
3634

  
3635

  
3636
--
3637 3595
-- Name: commclass_accessioncode_index; Type: INDEX; Schema: public; Owner: -; Tablespace: 
3638 3596
--
3639 3597

  
......
3641 3599

  
3642 3600

  
3643 3601
--
3644
-- Name: commclass_classpublication_id_x; Type: INDEX; Schema: public; Owner: -; Tablespace: 
3645
--
3646

  
3647
CREATE INDEX commclass_classpublication_id_x ON commclass  (classpublication_id);
3648

  
3649

  
3650
--
3651
-- Name: commclass_locationevent_id_x; Type: INDEX; Schema: public; Owner: -; Tablespace: 
3652
--
3653

  
3654
CREATE INDEX commclass_locationevent_id_x ON commclass  (locationevent_id);
3655

  
3656

  
3657
--
3658 3602
-- Name: commclass_unique; Type: INDEX; Schema: public; Owner: -; Tablespace: 
3659 3603
--
3660 3604

  
......
3669 3613

  
3670 3614

  
3671 3615
--
3672
-- Name: commconcept_commname_id_x; Type: INDEX; Schema: public; Owner: -; Tablespace: 
3673
--
3674

  
3675
CREATE INDEX commconcept_commname_id_x ON commconcept  (commname_id);
3676

  
3677

  
3678
--
3679
-- Name: commconcept_dobscount_x; Type: INDEX; Schema: public; Owner: -; Tablespace: 
3680
--
3681

  
3682
CREATE INDEX commconcept_dobscount_x ON commconcept  (d_obscount);
3683

  
3684

  
3685
--
3686
-- Name: commconcept_reference_id_x; Type: INDEX; Schema: public; Owner: -; Tablespace: 
3687
--
3688

  
3689
CREATE INDEX commconcept_reference_id_x ON commconcept  (reference_id);
3690

  
3691

  
3692
--
3693
-- Name: commcorrelation_commconcept_id_x; Type: INDEX; Schema: public; Owner: -; Tablespace: 
3694
--
3695

  
3696
CREATE INDEX commcorrelation_commconcept_id_x ON commcorrelation  (commconcept_id);
3697

  
3698

  
3699
--
3700
-- Name: commcorrelation_commstatus_id_x; Type: INDEX; Schema: public; Owner: -; Tablespace: 
3701
--
3702

  
3703
CREATE INDEX commcorrelation_commstatus_id_x ON commcorrelation  (commstatus_id);
3704

  
3705

  
3706
--
3707
-- Name: commdetermination_commauthority_id_x; Type: INDEX; Schema: public; Owner: -; Tablespace: 
3708
--
3709

  
3710
CREATE INDEX commdetermination_commauthority_id_x ON commdetermination  (commauthority_id);
3711

  
3712

  
3713
--
3714
-- Name: commdetermination_commclass_id_x; Type: INDEX; Schema: public; Owner: -; Tablespace: 
3715
--
3716

  
3717
CREATE INDEX commdetermination_commclass_id_x ON commdetermination  (commclass_id);
3718

  
3719

  
3720
--
3721
-- Name: commdetermination_commconcept_id_x; Type: INDEX; Schema: public; Owner: -; Tablespace: 
3722
--
3723

  
3724
CREATE INDEX commdetermination_commconcept_id_x ON commdetermination  (commconcept_id);
3725

  
3726

  
3727
--
3728
-- Name: commlineage_childcommstatus_id_x; Type: INDEX; Schema: public; Owner: -; Tablespace: 
3729
--
3730

  
3731
CREATE INDEX commlineage_childcommstatus_id_x ON commlineage  (childcommstatus_id);
3732

  
3733

  
3734
--
3735
-- Name: commlineage_parentcommstatus_id_x; Type: INDEX; Schema: public; Owner: -; Tablespace: 
3736
--
3737

  
3738
CREATE INDEX commlineage_parentcommstatus_id_x ON commlineage  (parentcommstatus_id);
3739

  
3740

  
3741
--
3742
-- Name: commname_reference_id_x; Type: INDEX; Schema: public; Owner: -; Tablespace: 
3743
--
3744

  
3745
CREATE INDEX commname_reference_id_x ON commname  (reference_id);
3746

  
3747

  
3748
--
3749 3616
-- Name: commstatus_accessioncode_index; Type: INDEX; Schema: public; Owner: -; Tablespace: 
3750 3617
--
3751 3618

  
......
3753 3620

  
3754 3621

  
3755 3622
--
3756
-- Name: commstatus_commconcept_id_x; Type: INDEX; Schema: public; Owner: -; Tablespace: 
3757
--
3758

  
3759
CREATE INDEX commstatus_commconcept_id_x ON commstatus  (commconcept_id);
3760

  
3761

  
3762
--
3763
-- Name: commstatus_commlevel_x; Type: INDEX; Schema: public; Owner: -; Tablespace: 
3764
--
3765

  
3766
CREATE INDEX commstatus_commlevel_x ON commstatus  (commlevel);
3767

  
3768

  
3769
--
3770
-- Name: commstatus_commparent_id_x; Type: INDEX; Schema: public; Owner: -; Tablespace: 
3771
--
3772

  
3773
CREATE INDEX commstatus_commparent_id_x ON commstatus  (commparent_id);
3774

  
3775

  
3776
--
3777
-- Name: commstatus_party_id_x; Type: INDEX; Schema: public; Owner: -; Tablespace: 
3778
--
3779

  
3780
CREATE INDEX commstatus_party_id_x ON commstatus  (party_id);
3781

  
3782

  
3783
--
3784
-- Name: commstatus_reference_id_x; Type: INDEX; Schema: public; Owner: -; Tablespace: 
3785
--
3786

  
3787
CREATE INDEX commstatus_reference_id_x ON commstatus  (reference_id);
3788

  
3789

  
3790
--
3791
-- Name: commusage_classsystem_x; Type: INDEX; Schema: public; Owner: -; Tablespace: 
3792
--
3793

  
3794
CREATE INDEX commusage_classsystem_x ON commusage  (classsystem);
3795

  
3796

  
3797
--
3798
-- Name: commusage_commconcept_id_x; Type: INDEX; Schema: public; Owner: -; Tablespace: 
3799
--
3800

  
3801
CREATE INDEX commusage_commconcept_id_x ON commusage  (commconcept_id);
3802

  
3803

  
3804
--
3805
-- Name: commusage_commname_id_x; Type: INDEX; Schema: public; Owner: -; Tablespace: 
3806
--
3807

  
3808
CREATE INDEX commusage_commname_id_x ON commusage  (commname_id);
3809

  
3810

  
3811
--
3812
-- Name: commusage_commname_x; Type: INDEX; Schema: public; Owner: -; Tablespace: 
3813
--
3814

  
3815
CREATE INDEX commusage_commname_x ON commusage  (commname);
3816

  
3817

  
3818
--
3819
-- Name: commusage_commstatus_id_x; Type: INDEX; Schema: public; Owner: -; Tablespace: 
3820
--
3821

  
3822
CREATE INDEX commusage_commstatus_id_x ON commusage  (commstatus_id);
3823

  
3824

  
3825
--
3826
-- Name: commusage_party_id_x; Type: INDEX; Schema: public; Owner: -; Tablespace: 
3827
--
3828

  
3829
CREATE INDEX commusage_party_id_x ON commusage  (party_id);
3830

  
3831

  
3832
--
3833
-- Name: coverindex_covermethod_id_x; Type: INDEX; Schema: public; Owner: -; Tablespace: 
3834
--
3835

  
3836
CREATE INDEX coverindex_covermethod_id_x ON coverindex  (covermethod_id);
3837

  
3838

  
3839
--
3840 3623
-- Name: covermethod_accessioncode_index; Type: INDEX; Schema: public; Owner: -; Tablespace: 
3841 3624
--
3842 3625

  
......
3844 3627

  
3845 3628

  
3846 3629
--
3847
-- Name: covermethod_reference_id_x; Type: INDEX; Schema: public; Owner: -; Tablespace: 
3848
--
3849

  
3850
CREATE INDEX covermethod_reference_id_x ON covermethod  (reference_id);
3851

  
3852

  
3853
--
3854
-- Name: definedvalue_userdefined_id_x; Type: INDEX; Schema: public; Owner: -; Tablespace: 
3855
--
3856

  
3857
CREATE INDEX definedvalue_userdefined_id_x ON definedvalue  (userdefined_id);
3858

  
3859

  
3860
--
3861
-- Name: disturbanceobs_locationevent_id_x; Type: INDEX; Schema: public; Owner: -; Tablespace: 
3862
--
3863

  
3864
CREATE INDEX disturbanceobs_locationevent_id_x ON disturbanceobs  (locationevent_id);
3865

  
3866

  
3867
--
3868
-- Name: fki_aggregateoccurrence_coverindex_id; Type: INDEX; Schema: public; Owner: -; Tablespace: 
3869
--
3870

  
3871
CREATE INDEX fki_aggregateoccurrence_coverindex_id ON aggregateoccurrence  (coverindex_id);
3872

  
3873

  
3874
--
3875
-- Name: fki_aggregateoccurrence_plantobservation_id; Type: INDEX; Schema: public; Owner: -; Tablespace: 
3876
--
3877

  
3878
CREATE INDEX fki_aggregateoccurrence_plantobservation_id ON aggregateoccurrence  (plantobservation_id);
3879

  
3880

  
3881
--
3882
-- Name: fki_aggregateoccurrence_stratum_id; Type: INDEX; Schema: public; Owner: -; Tablespace: 
3883
--
3884

  
3885
CREATE INDEX fki_aggregateoccurrence_stratum_id ON aggregateoccurrence  (stratum_id);
3886

  
3887

  
3888
--
3889
-- Name: fki_locationdetermination_identifier_id; Type: INDEX; Schema: public; Owner: -; Tablespace: 
3890
--
3891

  
3892
CREATE INDEX fki_locationdetermination_identifier_id ON locationdetermination  (identifier_id);
3893

  
3894

  
3895
--
3896
-- Name: fki_locationevent_datasource_id; Type: INDEX; Schema: public; Owner: -; Tablespace: 
3897
--
3898

  
3899
CREATE INDEX fki_locationevent_datasource_id ON locationevent  (datasource_id);
3900

  
3901

  
3902
--
3903
-- Name: fki_locationevent_method_id; Type: INDEX; Schema: public; Owner: -; Tablespace: 
3904
--
3905

  
3906
CREATE INDEX fki_locationevent_method_id ON locationevent  (method_id);
3907

  
3908

  
3909
--
3910
-- Name: fki_locationevent_parent_id; Type: INDEX; Schema: public; Owner: -; Tablespace: 
3911
--
3912

  
3913
CREATE INDEX fki_locationevent_parent_id ON locationevent  (parent_id);
3914

  
3915

  
3916
--
3917
-- Name: fki_method_reference_id; Type: INDEX; Schema: public; Owner: -; Tablespace: 
3918
--
3919

  
3920
CREATE INDEX fki_method_reference_id ON method  (reference_id);
3921

  
3922

  
3923
--
3924
-- Name: fki_method_subplotmethod_id; Type: INDEX; Schema: public; Owner: -; Tablespace: 
3925
--
3926

  
3927
CREATE INDEX fki_method_subplotmethod_id ON method  (subplotmethod_id);
3928

  
3929

  
3930
--
3931
-- Name: fki_methodtaxonclass_method_id; Type: INDEX; Schema: public; Owner: -; Tablespace: 
3932
--
3933

  
3934
CREATE INDEX fki_methodtaxonclass_method_id ON methodtaxonclass  (method_id);
3935

  
3936

  
3937
--
3938
-- Name: fki_methodtaxonclass_plantconcept_id; Type: INDEX; Schema: public; Owner: -; Tablespace: 
3939
--
3940

  
3941
CREATE INDEX fki_methodtaxonclass_plantconcept_id ON methodtaxonclass  (plantconcept_id);
3942

  
3943

  
3944
--
3945
-- Name: fki_namedplace_ancestor_ancestor_id; Type: INDEX; Schema: public; Owner: -; Tablespace: 
3946
--
3947

  
3948
CREATE INDEX fki_namedplace_ancestor_ancestor_id ON namedplace_ancestor  (ancestor_id);
3949

  
3950

  
3951
--
3952
-- Name: fki_namedplace_ancestor_namedplace_id; Type: INDEX; Schema: public; Owner: -; Tablespace: 
3953
--
3954

  
3955
CREATE INDEX fki_namedplace_ancestor_namedplace_id ON namedplace_ancestor  (namedplace_id);
3956

  
3957

  
3958
--
3959
-- Name: fki_namedplace_parent_id; Type: INDEX; Schema: public; Owner: -; Tablespace: 
3960
--
3961

  
3962
CREATE INDEX fki_namedplace_parent_id ON namedplace  (parent_id);
3963

  
3964

  
3965
--
3966
-- Name: fki_plantname_ancestor_ancestor_id; Type: INDEX; Schema: public; Owner: -; Tablespace: 
3967
--
3968

  
3969
CREATE INDEX fki_plantname_ancestor_ancestor_id ON plantname_ancestor  (ancestor_id);
3970

  
3971

  
3972
--
3973
-- Name: fki_plantname_ancestor_plantname_id; Type: INDEX; Schema: public; Owner: -; Tablespace: 
3974
--
3975

  
3976
CREATE INDEX fki_plantname_ancestor_plantname_id ON plantname_ancestor  (plantname_id);
3977

  
3978

  
3979
--
3980
-- Name: fki_plantname_parent_id; Type: INDEX; Schema: public; Owner: -; Tablespace: 
3981
--
3982

  
3983
CREATE INDEX fki_plantname_parent_id ON plantname  (parent_id);
3984

  
3985

  
3986
--
3987
-- Name: fki_plantname_scope_id; Type: INDEX; Schema: public; Owner: -; Tablespace: 
3988
--
3989

  
3990
CREATE INDEX fki_plantname_scope_id ON plantname  (scope_id);
3991

  
3992

  
3993
--
3994
-- Name: fki_plantnamescope_locationevent_id; Type: INDEX; Schema: public; Owner: -; Tablespace: 
3995
--
3996

  
3997
CREATE INDEX fki_plantnamescope_locationevent_id ON plantnamescope  (locationevent_id);
3998

  
3999

  
4000
--
4001
-- Name: fki_plantnamescope_namedplace_id; Type: INDEX; Schema: public; Owner: -; Tablespace: 
4002
--
4003

  
4004
CREATE INDEX fki_plantnamescope_namedplace_id ON plantnamescope  (namedplace_id);
4005

  
4006

  
4007
--
4008
-- Name: fki_plantnamescope_project_id; Type: INDEX; Schema: public; Owner: -; Tablespace: 
4009
--
4010

  
4011
CREATE INDEX fki_plantnamescope_project_id ON plantnamescope  (project_id);
4012

  
4013

  
4014
--
4015
-- Name: fki_plantobservation_plant_id; Type: INDEX; Schema: public; Owner: -; Tablespace: 
4016
--
4017

  
4018
CREATE INDEX fki_plantobservation_plant_id ON plantobservation  (plant_id);
4019

  
4020

  
4021
--
4022
-- Name: fki_project_datasource_id; Type: INDEX; Schema: public; Owner: -; Tablespace: 
4023
--
4024

  
4025
CREATE INDEX fki_project_datasource_id ON project  (datasource_id);
4026

  
4027

  
4028
--
4029
-- Name: fki_specimenreplicate_datasource_id; Type: INDEX; Schema: public; Owner: -; Tablespace: 
4030
--
4031

  
4032
CREATE INDEX fki_specimenreplicate_datasource_id ON specimenreplicate  (datasource_id);
4033

  
4034

  
4035
--
4036
-- Name: fki_specimenreplicate_institution_id; Type: INDEX; Schema: public; Owner: -; Tablespace: 
4037
--
4038

  
4039
CREATE INDEX fki_specimenreplicate_institution_id ON specimenreplicate  (institution_id);
4040

  
4041

  
4042
--
4043
-- Name: fki_specimenreplicate_plantobservation_id; Type: INDEX; Schema: public; Owner: -; Tablespace: 
4044
--
4045

  
4046
CREATE INDEX fki_specimenreplicate_plantobservation_id ON specimenreplicate  (plantobservation_id);
4047

  
4048

  
4049
--
4050
-- Name: fki_specimenreplicate_specimen_id; Type: INDEX; Schema: public; Owner: -; Tablespace: 
4051
--
4052

  
4053
CREATE INDEX fki_specimenreplicate_specimen_id ON specimenreplicate  (specimen_id);
4054

  
4055

  
4056
--
4057
-- Name: fki_stemtag_plant_id; Type: INDEX; Schema: public; Owner: -; Tablespace: 
4058
--
4059

  
4060
CREATE INDEX fki_stemtag_plant_id ON stemtag  (stemobservation_id);
4061

  
4062

  
4063
--
4064
-- Name: fki_stemtag_plantobservation_id; Type: INDEX; Schema: public; Owner: -; Tablespace: 
4065
--
4066

  
4067
CREATE INDEX fki_stemtag_plantobservation_id ON stemtag  (stemobservation_id);
4068

  
4069

  
4070
--
4071
-- Name: fki_stemtag_stemobservation_id; Type: INDEX; Schema: public; Owner: -; Tablespace: 
4072
--
4073

  
4074
CREATE INDEX fki_stemtag_stemobservation_id ON stemtag  (stemobservation_id);
4075

  
4076

  
4077
--
4078 3630
-- Name: graphic_accessioncode_index; Type: INDEX; Schema: public; Owner: -; Tablespace: 
4079 3631
--
4080 3632

  
......
4082 3634

  
4083 3635

  
4084 3636
--
4085
-- Name: graphic_locationevent_id_x; Type: INDEX; Schema: public; Owner: -; Tablespace: 
4086
--
4087

  
4088
CREATE INDEX graphic_locationevent_id_x ON graphic  (locationevent_id);
4089

  
4090

  
4091
--
4092 3637
-- Name: location_accessioncode_index; Type: INDEX; Schema: public; Owner: -; Tablespace: 
4093 3638
--
4094 3639

  
......
4096 3641

  
4097 3642

  
4098 3643
--
4099
-- Name: location_centerlatitude; Type: INDEX; Schema: public; Owner: -; Tablespace: 
4100
--
4101

  
4102

  
4103

  
4104

  
4105
--
4106
-- Name: location_centerlongitude; Type: INDEX; Schema: public; Owner: -; Tablespace: 
4107
--
4108

  
4109

  
4110

  
4111

  
4112
--
4113
-- Name: location_parent_id_x; Type: INDEX; Schema: public; Owner: -; Tablespace: 
4114
--
4115

  
4116
CREATE INDEX location_parent_id_x ON location  (parent_id);
4117

  
4118

  
4119
--
4120
-- Name: locationdetermination_location_id_x; Type: INDEX; Schema: public; Owner: -; Tablespace: 
4121
--
4122

  
4123
CREATE INDEX locationdetermination_location_id_x ON locationdetermination  (location_id);
4124

  
4125

  
4126
--
4127
-- Name: locationdetermination_namedplace_id; Type: INDEX; Schema: public; Owner: -; Tablespace: 
4128
--
4129

  
4130

  
4131

  
4132

  
4133
--
4134 3644
-- Name: locationevent_accessioncode_index; Type: INDEX; Schema: public; Owner: -; Tablespace: 
4135 3645
--
4136 3646

  
......
4138 3648

  
4139 3649

  
4140 3650
--
4141
-- Name: locationevent_location_id_x; Type: INDEX; Schema: public; Owner: -; Tablespace: 
4142
--
4143

  
4144
CREATE INDEX locationevent_location_id_x ON locationevent  (location_id);
4145

  
4146

  
4147
--
4148
-- Name: locationevent_previousobs_id_x; Type: INDEX; Schema: public; Owner: -; Tablespace: 
4149
--
4150

  
4151
CREATE INDEX locationevent_previousobs_id_x ON locationevent  (previous_id);
4152

  
4153

  
4154
--
4155
-- Name: locationevent_project_id; Type: INDEX; Schema: public; Owner: -; Tablespace: 
4156
--
4157

  
4158
CREATE INDEX locationevent_project_id ON locationevent  (project_id);
4159

  
4160

  
4161
--
4162
-- Name: locationevent_soiltaxon_id_x; Type: INDEX; Schema: public; Owner: -; Tablespace: 
4163
--
4164

  
4165
CREATE INDEX locationevent_soiltaxon_id_x ON locationevent  (soiltaxon_id);
4166

  
4167

  
4168
--
4169 3651
-- Name: locationevent_unique_accessioncode; Type: INDEX; Schema: public; Owner: -; Tablespace: 
4170 3652
--
4171 3653

  
......
4194 3676

  
4195 3677

  
4196 3678
--
4197
-- Name: locationeventcontributor_locationevent_id_x; Type: INDEX; Schema: public; Owner: -; Tablespace: 
4198
--
4199

  
4200
CREATE INDEX locationeventcontributor_locationevent_id_x ON locationeventcontributor  (locationevent_id);
4201

  
4202

  
4203
--
4204
-- Name: locationeventcontributor_party_id_x; Type: INDEX; Schema: public; Owner: -; Tablespace: 
4205
--
4206

  
4207
CREATE INDEX locationeventcontributor_party_id_x ON locationeventcontributor  (party_id);
4208

  
4209

  
4210
--
4211
-- Name: locationeventcontributor_role_id_x; Type: INDEX; Schema: public; Owner: -; Tablespace: 
4212
--
4213

  
4214
CREATE INDEX locationeventcontributor_role_id_x ON locationeventcontributor  (role);
4215

  
4216

  
4217
--
4218 3679
-- Name: locationeventsynonym_accessioncode_index; Type: INDEX; Schema: public; Owner: -; Tablespace: 
4219 3680
--
4220 3681

  
......
4222 3683

  
4223 3684

  
4224 3685
--
4225
-- Name: locationeventsynonym_party_id_x; Type: INDEX; Schema: public; Owner: -; Tablespace: 
4226
--
4227

  
4228
CREATE INDEX locationeventsynonym_party_id_x ON locationeventsynonym  (party_id);
4229

  
4230

  
4231
--
4232
-- Name: locationeventsynonym_primarylocationevent_id_x; Type: INDEX; Schema: public; Owner: -; Tablespace: 
4233
--
4234

  
4235
CREATE INDEX locationeventsynonym_primarylocationevent_id_x ON locationeventsynonym  (primarylocationevent_id);
4236

  
4237

  
4238
--
4239
-- Name: locationeventsynonym_role_id_x; Type: INDEX; Schema: public; Owner: -; Tablespace: 
4240
--
4241

  
4242
CREATE INDEX locationeventsynonym_role_id_x ON locationeventsynonym  (role);
4243

  
4244

  
4245
--
4246
-- Name: locationeventsynonym_synonymlocationevent_id_x; Type: INDEX; Schema: public; Owner: -; Tablespace: 
4247
--
4248

  
4249
CREATE INDEX locationeventsynonym_synonymlocationevent_id_x ON locationeventsynonym  (synonymlocationevent_id);
4250

  
4251

  
4252
--
4253 3686
-- Name: method_accessioncode; Type: INDEX; Schema: public; Owner: -; Tablespace: 
4254 3687
--
4255 3688

  
......
4257 3690

  
4258 3691

  
4259 3692
--
4260
-- Name: method_description; Type: INDEX; Schema: public; Owner: -; Tablespace: 
4261
--
4262

  
4263

  
4264

  
4265

  
4266
--
4267
-- Name: method_name; Type: INDEX; Schema: public; Owner: -; Tablespace: 
4268
--
4269

  
4270
CREATE INDEX method_name ON method  (name);
4271

  
4272

  
4273
--
4274 3693
-- Name: method_unique; Type: INDEX; Schema: public; Owner: -; Tablespace: 
4275 3694
--
4276 3695

  
......
4299 3718

  
4300 3719

  
4301 3720
--
4302
-- Name: note_notelink_id_x; Type: INDEX; Schema: public; Owner: -; Tablespace: 
4303
--
4304

  
4305
CREATE INDEX note_notelink_id_x ON note  (notelink_id);
4306

  
4307

  
4308
--
4309
-- Name: note_party_id_x; Type: INDEX; Schema: public; Owner: -; Tablespace: 
4310
--
4311

  
4312
CREATE INDEX note_party_id_x ON note  (party_id);
4313

  
4314

  
4315
--
4316
-- Name: note_role_id_x; Type: INDEX; Schema: public; Owner: -; Tablespace: 
4317
--
4318

  
4319
CREATE INDEX note_role_id_x ON note  (role);
4320

  
4321

  
4322
--
4323 3721
-- Name: party_accessioncode_index; Type: INDEX; Schema: public; Owner: -; Tablespace: 
4324 3722
--
4325 3723

  
......
4327 3725

  
4328 3726

  
4329 3727
--
4330
-- Name: party_currentname_id_x; Type: INDEX; Schema: public; Owner: -; Tablespace: 
4331
--
4332

  
4333
CREATE INDEX party_currentname_id_x ON party  (currentname_id);
4334

  
4335

  
4336
--
4337
-- Name: party_givenname; Type: INDEX; Schema: public; Owner: -; Tablespace: 
4338
--
4339

  
4340

  
4341

  
4342

  
4343
--
4344
-- Name: party_middlename; Type: INDEX; Schema: public; Owner: -; Tablespace: 
4345
--
4346

  
4347

  
4348

  
4349

  
4350
--
4351
-- Name: party_organizationname; Type: INDEX; Schema: public; Owner: -; Tablespace: 
4352
--
4353

  
4354

  
4355

  
4356

  
4357
--
4358
-- Name: party_surname; Type: INDEX; Schema: public; Owner: -; Tablespace: 
4359
--
4360

  
4361

  
4362

  
4363

  
4364
--
4365 3728
-- Name: party_unique; Type: INDEX; Schema: public; Owner: -; Tablespace: 
4366 3729
--
4367 3730

  
......
4369 3732

  
4370 3733

  
4371 3734
--
4372
-- Name: partymember_childparty_id_x; Type: INDEX; Schema: public; Owner: -; Tablespace: 
4373
--
4374

  
4375
CREATE INDEX partymember_childparty_id_x ON partymember  (childparty_id);
4376

  
4377

  
4378
--
4379
-- Name: partymember_parentparty_id_x; Type: INDEX; Schema: public; Owner: -; Tablespace: 
4380
--
4381

  
4382
CREATE INDEX partymember_parentparty_id_x ON partymember  (parentparty_id);
4383

  
4384

  
4385
--
4386
-- Name: partymember_role_id_x; Type: INDEX; Schema: public; Owner: -; Tablespace: 
4387
--
4388

  
4389
CREATE INDEX partymember_role_id_x ON partymember  (role);
4390

  
4391

  
4392
--
4393 3735
-- Name: plantconcept_accessioncode_index; Type: INDEX; Schema: public; Owner: -; Tablespace: 
4394 3736
--
4395 3737

  
......
4397 3739

  
4398 3740

  
4399 3741
--
4400
-- Name: plantconcept_plantname_id_x; Type: INDEX; Schema: public; Owner: -; Tablespace: 
4401
--
4402

  
4403
CREATE INDEX plantconcept_plantname_id_x ON plantconcept  (plantname_id);
4404

  
4405

  
4406
--
4407
-- Name: plantcorrelation_plantconcept_id_x; Type: INDEX; Schema: public; Owner: -; Tablespace: 
4408
--
4409

  
4410
CREATE INDEX plantcorrelation_plantconcept_id_x ON plantcorrelation  (plantconcept_id);
4411

  
4412

  
4413
--
4414
-- Name: plantcorrelation_plantstatus_id_x; Type: INDEX; Schema: public; Owner: -; Tablespace: 
4415
--
4416

  
4417
CREATE INDEX plantcorrelation_plantstatus_id_x ON plantcorrelation  (plantstatus_id);
4418

  
4419

  
4420
--
4421
-- Name: plantlineage_childplantstatus_id_x; Type: INDEX; Schema: public; Owner: -; Tablespace: 
4422
--
4423

  
4424
CREATE INDEX plantlineage_childplantstatus_id_x ON plantlineage  (childplantstatus_id);
4425

  
4426

  
4427
--
4428
-- Name: plantlineage_parentplantstatus_id_x; Type: INDEX; Schema: public; Owner: -; Tablespace: 
4429
--
4430

  
4431
CREATE INDEX plantlineage_parentplantstatus_id_x ON plantlineage  (parentplantstatus_id);
4432

  
4433

  
4434
--
4435 3742
-- Name: plantname_unique; Type: INDEX; Schema: public; Owner: -; Tablespace: 
4436 3743
--
4437 3744

  
......
4453 3760

  
4454 3761

  
4455 3762
--
4456
-- Name: plantstatus_party_id_x; Type: INDEX; Schema: public; Owner: -; Tablespace: 
4457
--
4458

  
4459
CREATE INDEX plantstatus_party_id_x ON plantstatus  (party_id);
4460

  
4461

  
4462
--
4463
-- Name: plantstatus_plantconcept_id_x; Type: INDEX; Schema: public; Owner: -; Tablespace: 
4464
--
4465

  
4466
CREATE INDEX plantstatus_plantconcept_id_x ON plantstatus  (plantconcept_id);
4467

  
4468

  
4469
--
4470
-- Name: plantstatus_reference_id_x; Type: INDEX; Schema: public; Owner: -; Tablespace: 
4471
--
4472

  
4473
CREATE INDEX plantstatus_reference_id_x ON plantstatus  (reference_id);
4474

  
4475

  
4476
--
4477
-- Name: plantusage_classsystem_x; Type: INDEX; Schema: public; Owner: -; Tablespace: 
4478
--
4479

  
4480
CREATE INDEX plantusage_classsystem_x ON plantusage  (classsystem);
4481

  
4482

  
4483
--
4484
-- Name: plantusage_party_id_x; Type: INDEX; Schema: public; Owner: -; Tablespace: 
4485
--
4486

  
4487
CREATE INDEX plantusage_party_id_x ON plantusage  (party_id);
4488

  
4489

  
4490
--
4491
-- Name: plantusage_plantconcept_id_x; Type: INDEX; Schema: public; Owner: -; Tablespace: 
4492
--
4493

  
4494
CREATE INDEX plantusage_plantconcept_id_x ON plantusage  (plantconcept_id);
4495

  
4496

  
4497
--
4498
-- Name: plantusage_plantname_id_x; Type: INDEX; Schema: public; Owner: -; Tablespace: 
4499
--
4500

  
4501
CREATE INDEX plantusage_plantname_id_x ON plantusage  (plantname_id);
4502

  
4503

  
4504
--
4505
-- Name: plantusage_plantname_x; Type: INDEX; Schema: public; Owner: -; Tablespace: 
4506
--
4507

  
4508
CREATE INDEX plantusage_plantname_x ON plantusage  (plantname);
4509

  
4510

  
4511
--
4512
-- Name: plantusage_plantstatus_id_x; Type: INDEX; Schema: public; Owner: -; Tablespace: 
4513
--
4514

  
4515
CREATE INDEX plantusage_plantstatus_id_x ON plantusage  (plantstatus_id);
4516

  
4517

  
4518
--
4519 3763
-- Name: project_accessioncode_index; Type: INDEX; Schema: public; Owner: -; Tablespace: 
4520 3764
--
4521 3765

  
......
4523 3767

  
4524 3768

  
4525 3769
--
4526
-- Name: projectcontributor_party_id_x; Type: INDEX; Schema: public; Owner: -; Tablespace: 
4527
--
4528

  
4529
CREATE INDEX projectcontributor_party_id_x ON projectcontributor  (party_id);
4530

  
4531

  
4532
--
4533
-- Name: projectcontributor_project_id_x; Type: INDEX; Schema: public; Owner: -; Tablespace: 
4534
--
4535

  
4536
CREATE INDEX projectcontributor_project_id_x ON projectcontributor  (project_id);
4537

  
4538

  
4539
--
4540
-- Name: projectcontributor_role_id_x; Type: INDEX; Schema: public; Owner: -; Tablespace: 
4541
--
4542

  
4543
CREATE INDEX projectcontributor_role_id_x ON projectcontributor  (role);
4544

  
4545

  
4546
--
4547 3770
-- Name: reference_accessioncode_index; Type: INDEX; Schema: public; Owner: -; Tablespace: 
4548 3771
--
4549 3772

  
......
4551 3774

  
4552 3775

  
4553 3776
--
4554
-- Name: reference_referencejournal_id_x; Type: INDEX; Schema: public; Owner: -; Tablespace: 
4555
--
4556

  
4557
CREATE INDEX reference_referencejournal_id_x ON reference  (referencejournal_id);
4558

  
4559

  
4560
--
4561
-- Name: referencealtident_reference_id_x; Type: INDEX; Schema: public; Owner: -; Tablespace: 
4562
--
4563

  
4564
CREATE INDEX referencealtident_reference_id_x ON referencealtident  (reference_id);
4565

  
4566

  
4567
--
4568
-- Name: referencecontributor_reference_id_x; Type: INDEX; Schema: public; Owner: -; Tablespace: 
4569
--
4570

  
4571
CREATE INDEX referencecontributor_reference_id_x ON referencecontributor  (reference_id);
4572

  
4573

  
4574
--
4575
-- Name: referencecontributor_referenceparty_id_x; Type: INDEX; Schema: public; Owner: -; Tablespace: 
4576
--
4577

  
4578
CREATE INDEX referencecontributor_referenceparty_id_x ON referencecontributor  (referenceparty_id);
4579

  
4580

  
4581
--
4582 3777
-- Name: referencejournal_accessioncode_index; Type: INDEX; Schema: public; Owner: -; Tablespace: 
4583 3778
--
4584 3779

  
......
4593 3788

  
4594 3789

  
4595 3790
--
4596
-- Name: referenceparty_currentparty_id_x; Type: INDEX; Schema: public; Owner: -; Tablespace: 
4597
--
4598

  
4599
CREATE INDEX referenceparty_currentparty_id_x ON referenceparty  (currentparty_id);
4600

  
4601

  
4602
--
4603
-- Name: revision_previousrevision_id_x; Type: INDEX; Schema: public; Owner: -; Tablespace: 
4604
--
4605

  
4606
CREATE INDEX revision_previousrevision_id_x ON revision  (previousrevision_id);
4607

  
4608

  
4609
--
4610
-- Name: soilobs_locationevent_id_x; Type: INDEX; Schema: public; Owner: -; Tablespace: 
4611
--
4612

  
4613
CREATE INDEX soilobs_locationevent_id_x ON soilobs  (locationevent_id);
4614

  
4615

  
4616
--
4617 3791
-- Name: soiltaxon_accessioncode_index; Type: INDEX; Schema: public; Owner: -; Tablespace: 
4618 3792
--
4619 3793

  
......
4621 3795

  
4622 3796

  
4623 3797
--
4624
-- Name: soiltaxon_soilparent_id_x; Type: INDEX; Schema: public; Owner: -; Tablespace: 
4625
--
4626

  
4627
CREATE INDEX soiltaxon_soilparent_id_x ON soiltaxon  (soilparent_id);
4628

  
4629

  
4630
--
4631 3798
-- Name: specimenreplicate_unique_accessioncode; Type: INDEX; Schema: public; Owner: -; Tablespace: 
4632 3799
--
4633 3800

  
......
4642 3809

  
4643 3810

  
4644 3811
--
4645
-- Name: stemobservation_plantobservation_id_x; Type: INDEX; Schema: public; Owner: -; Tablespace: 
4646
--
4647

  
4648
CREATE INDEX stemobservation_plantobservation_id_x ON stemobservation  (plantobservation_id);
4649

  
4650

  
4651
--
4652
-- Name: stratum_locationevent_id_x; Type: INDEX; Schema: public; Owner: -; Tablespace: 
4653
--
4654

  
4655
CREATE INDEX stratum_locationevent_id_x ON stratum  (locationevent_id);
4656

  
4657

  
4658
--
4659
-- Name: taxonalt_plantconcept_id_x; Type: INDEX; Schema: public; Owner: -; Tablespace: 
4660
--
4661

  
4662
CREATE INDEX taxonalt_plantconcept_id_x ON taxonalt  (plantconcept_id);
4663

  
4664

  
4665
--
4666
-- Name: taxonalt_taxondetermination_id_x; Type: INDEX; Schema: public; Owner: -; Tablespace: 
4667
--
4668

  
4669
CREATE INDEX taxonalt_taxondetermination_id_x ON taxonalt  (taxondetermination_id);
4670

  
4671

  
4672
--
4673 3812
-- Name: taxondetermination_accessioncode_index; Type: INDEX; Schema: public; Owner: -; Tablespace: 
4674 3813
--
4675 3814

  
......
4677 3816

  
4678 3817

  
4679 3818
--
4680
-- Name: taxondetermination_party_id_x; Type: INDEX; Schema: public; Owner: -; Tablespace: 
4681
--
4682

  
4683
CREATE INDEX taxondetermination_party_id_x ON taxondetermination  (party_id);
4684

  
4685

  
4686
--
4687
-- Name: taxondetermination_plantconcept_id_x; Type: INDEX; Schema: public; Owner: -; Tablespace: 
4688
--
4689

  
4690
CREATE INDEX taxondetermination_plantconcept_id_x ON taxondetermination  (plantconcept_id);
4691

  
4692

  
4693
--
4694
-- Name: taxondetermination_reference_id_x; Type: INDEX; Schema: public; Owner: -; Tablespace: 
4695
--
4696

  
4697
CREATE INDEX taxondetermination_reference_id_x ON taxondetermination  (reference_id);
4698

  
4699

  
4700
--
4701
-- Name: taxondetermination_role_id_x; Type: INDEX; Schema: public; Owner: -; Tablespace: 
4702
--
4703

  
4704
CREATE INDEX taxondetermination_role_id_x ON taxondetermination  (role);
4705

  
4706

  
4707
--
4708
-- Name: taxondetermination_taxonoccurrence_id_x; Type: INDEX; Schema: public; Owner: -; Tablespace: 
4709
--
4710

  
4711
CREATE INDEX taxondetermination_taxonoccurrence_id_x ON taxondetermination  (taxonoccurrence_id);
4712

  
4713

  
4714
--
4715 3819
-- Name: taxondetermination_unique; Type: INDEX; Schema: public; Owner: -; Tablespace: 
4716 3820
--
4717 3821

  
......
4726 3830

  
4727 3831

  
4728 3832
--
4729
-- Name: taxonoccurrence_locationevent_id_x; Type: INDEX; Schema: public; Owner: -; Tablespace: 
4730
--
4731

  
4732
CREATE INDEX taxonoccurrence_locationevent_id_x ON taxonoccurrence  (locationevent_id);
4733

  
4734

  
4735
--
4736
-- Name: telephone_party_id_x; Type: INDEX; Schema: public; Owner: -; Tablespace: 
4737
--
4738

  
4739
CREATE INDEX telephone_party_id_x ON telephone  (party_id);
4740

  
4741

  
4742
--
4743 3833
-- Name: userdefined_accessioncode_index; Type: INDEX; Schema: public; Owner: -; Tablespace: 
4744 3834
--
4745 3835

  
schemas/vegbien.sql
4126 4126

  
4127 4127

  
4128 4128
--
4129
-- Name: address_organization_id_x; Type: INDEX; Schema: public; Owner: -; Tablespace: 
4130
--
4131

  
4132
CREATE INDEX address_organization_id_x ON address USING btree (organization_id);
4133

  
4134

  
4135
--
4136
-- Name: address_party_id_x; Type: INDEX; Schema: public; Owner: -; Tablespace: 
4137
--
4138

  
4139
CREATE INDEX address_party_id_x ON address USING btree (party_id);
4140

  
4141

  
4142
--
4143
-- Name: aggregateoccurrence_taxonoccurrence_id_x; Type: INDEX; Schema: public; Owner: -; Tablespace: 
4144
--
4145

  
4146
CREATE INDEX aggregateoccurrence_taxonoccurrence_id_x ON aggregateoccurrence USING btree (taxonoccurrence_id);
4147

  
4148

  
4149
--
4150
-- Name: classcontributor_commclass_id_x; Type: INDEX; Schema: public; Owner: -; Tablespace: 
4151
--
4152

  
4153
CREATE INDEX classcontributor_commclass_id_x ON classcontributor USING btree (commclass_id);
4154

  
4155

  
4156
--
4157
-- Name: classcontributor_party_id_x; Type: INDEX; Schema: public; Owner: -; Tablespace: 
4158
--
4159

  
4160
CREATE INDEX classcontributor_party_id_x ON classcontributor USING btree (party_id);
4161

  
4162

  
4163
--
4164
-- Name: classcontributor_role_id_x; Type: INDEX; Schema: public; Owner: -; Tablespace: 
4165
--
4166

  
4167
CREATE INDEX classcontributor_role_id_x ON classcontributor USING btree (role);
4168

  
4169

  
4170
--
4171 4129
-- Name: commclass_accessioncode_index; Type: INDEX; Schema: public; Owner: -; Tablespace: 
4172 4130
--
4173 4131

  
......
4175 4133

  
4176 4134

  
4177 4135
--
4178
-- Name: commclass_classpublication_id_x; Type: INDEX; Schema: public; Owner: -; Tablespace: 
4179
--
4180

  
4181
CREATE INDEX commclass_classpublication_id_x ON commclass USING btree (classpublication_id);
4182

  
4183

  
4184
--
4185
-- Name: commclass_locationevent_id_x; Type: INDEX; Schema: public; Owner: -; Tablespace: 
4186
--
4187

  
4188
CREATE INDEX commclass_locationevent_id_x ON commclass USING btree (locationevent_id);
4189

  
4190

  
4191
--
4192 4136
-- Name: commclass_unique; Type: INDEX; Schema: public; Owner: -; Tablespace: 
4193 4137
--
4194 4138

  
......
4203 4147

  
4204 4148

  
4205 4149
--
4206
-- Name: commconcept_commname_id_x; Type: INDEX; Schema: public; Owner: -; Tablespace: 
4207
--
4208

  
4209
CREATE INDEX commconcept_commname_id_x ON commconcept USING btree (commname_id);
4210

  
4211

  
4212
--
4213
-- Name: commconcept_dobscount_x; Type: INDEX; Schema: public; Owner: -; Tablespace: 
4214
--
4215

  
4216
CREATE INDEX commconcept_dobscount_x ON commconcept USING btree (d_obscount);
4217

  
4218

  
4219
--
4220
-- Name: commconcept_reference_id_x; Type: INDEX; Schema: public; Owner: -; Tablespace: 
4221
--
4222

  
4223
CREATE INDEX commconcept_reference_id_x ON commconcept USING btree (reference_id);
4224

  
4225

  
4226
--
4227
-- Name: commcorrelation_commconcept_id_x; Type: INDEX; Schema: public; Owner: -; Tablespace: 
4228
--
4229

  
4230
CREATE INDEX commcorrelation_commconcept_id_x ON commcorrelation USING btree (commconcept_id);
4231

  
4232

  
4233
--
4234
-- Name: commcorrelation_commstatus_id_x; Type: INDEX; Schema: public; Owner: -; Tablespace: 
4235
--
4236

  
4237
CREATE INDEX commcorrelation_commstatus_id_x ON commcorrelation USING btree (commstatus_id);
4238

  
4239

  
4240
--
4241
-- Name: commdetermination_commauthority_id_x; Type: INDEX; Schema: public; Owner: -; Tablespace: 
4242
--
4243

  
4244
CREATE INDEX commdetermination_commauthority_id_x ON commdetermination USING btree (commauthority_id);
4245

  
4246

  
4247
--
4248
-- Name: commdetermination_commclass_id_x; Type: INDEX; Schema: public; Owner: -; Tablespace: 
4249
--
4250

  
4251
CREATE INDEX commdetermination_commclass_id_x ON commdetermination USING btree (commclass_id);
4252

  
4253

  
4254
--
4255
-- Name: commdetermination_commconcept_id_x; Type: INDEX; Schema: public; Owner: -; Tablespace: 
4256
--
4257

  
4258
CREATE INDEX commdetermination_commconcept_id_x ON commdetermination USING btree (commconcept_id);
4259

  
4260

  
4261
--
4262
-- Name: commlineage_childcommstatus_id_x; Type: INDEX; Schema: public; Owner: -; Tablespace: 
4263
--
4264

  
4265
CREATE INDEX commlineage_childcommstatus_id_x ON commlineage USING btree (childcommstatus_id);
4266

  
4267

  
4268
--
4269
-- Name: commlineage_parentcommstatus_id_x; Type: INDEX; Schema: public; Owner: -; Tablespace: 
4270
--
4271

  
4272
CREATE INDEX commlineage_parentcommstatus_id_x ON commlineage USING btree (parentcommstatus_id);
4273

  
4274

  
4275
--
4276
-- Name: commname_reference_id_x; Type: INDEX; Schema: public; Owner: -; Tablespace: 
4277
--
4278

  
4279
CREATE INDEX commname_reference_id_x ON commname USING btree (reference_id);
4280

  
4281

  
4282
--
4283 4150
-- Name: commstatus_accessioncode_index; Type: INDEX; Schema: public; Owner: -; Tablespace: 
4284 4151
--
4285 4152

  
......
4287 4154

  
4288 4155

  
4289 4156
--
4290
-- Name: commstatus_commconcept_id_x; Type: INDEX; Schema: public; Owner: -; Tablespace: 
4291
--
4292

  
4293
CREATE INDEX commstatus_commconcept_id_x ON commstatus USING btree (commconcept_id);
4294

  
4295

  
4296
--
4297
-- Name: commstatus_commlevel_x; Type: INDEX; Schema: public; Owner: -; Tablespace: 
4298
--
4299

  
4300
CREATE INDEX commstatus_commlevel_x ON commstatus USING btree (commlevel);
4301

  
4302

  
4303
--
4304
-- Name: commstatus_commparent_id_x; Type: INDEX; Schema: public; Owner: -; Tablespace: 
4305
--
4306

  
4307
CREATE INDEX commstatus_commparent_id_x ON commstatus USING btree (commparent_id);
4308

  
4309

  
4310
--
4311
-- Name: commstatus_party_id_x; Type: INDEX; Schema: public; Owner: -; Tablespace: 
4312
--
4313

  
4314
CREATE INDEX commstatus_party_id_x ON commstatus USING btree (party_id);
4315

  
4316

  
4317
--
4318
-- Name: commstatus_reference_id_x; Type: INDEX; Schema: public; Owner: -; Tablespace: 
4319
--
4320

  
4321
CREATE INDEX commstatus_reference_id_x ON commstatus USING btree (reference_id);
4322

  
4323

  
4324
--
4325
-- Name: commusage_classsystem_x; Type: INDEX; Schema: public; Owner: -; Tablespace: 
4326
--
4327

  
4328
CREATE INDEX commusage_classsystem_x ON commusage USING btree (classsystem);
4329

  
4330

  
4331
--
4332
-- Name: commusage_commconcept_id_x; Type: INDEX; Schema: public; Owner: -; Tablespace: 
4333
--
4334

  
4335
CREATE INDEX commusage_commconcept_id_x ON commusage USING btree (commconcept_id);
4336

  
4337

  
4338
--
4339
-- Name: commusage_commname_id_x; Type: INDEX; Schema: public; Owner: -; Tablespace: 
4340
--
4341

  
4342
CREATE INDEX commusage_commname_id_x ON commusage USING btree (commname_id);
4343

  
4344

  
4345
--
4346
-- Name: commusage_commname_x; Type: INDEX; Schema: public; Owner: -; Tablespace: 
4347
--
4348

  
4349
CREATE INDEX commusage_commname_x ON commusage USING btree (commname);
4350

  
4351

  
4352
--
4353
-- Name: commusage_commstatus_id_x; Type: INDEX; Schema: public; Owner: -; Tablespace: 
4354
--
4355

  
4356
CREATE INDEX commusage_commstatus_id_x ON commusage USING btree (commstatus_id);
4357

  
4358

  
4359
--
4360
-- Name: commusage_party_id_x; Type: INDEX; Schema: public; Owner: -; Tablespace: 
4361
--
4362

  
4363
CREATE INDEX commusage_party_id_x ON commusage USING btree (party_id);
4364

  
4365

  
4366
--
4367
-- Name: coverindex_covermethod_id_x; Type: INDEX; Schema: public; Owner: -; Tablespace: 
4368
--
4369

  
4370
CREATE INDEX coverindex_covermethod_id_x ON coverindex USING btree (covermethod_id);
4371

  
4372

  
4373
--
4374 4157
-- Name: covermethod_accessioncode_index; Type: INDEX; Schema: public; Owner: -; Tablespace: 
4375 4158
--
4376 4159

  
......
4378 4161

  
4379 4162

  
4380 4163
--
4381
-- Name: covermethod_reference_id_x; Type: INDEX; Schema: public; Owner: -; Tablespace: 
4382
--
4383

  
4384
CREATE INDEX covermethod_reference_id_x ON covermethod USING btree (reference_id);
4385

  
4386

  
4387
--
4388
-- Name: definedvalue_userdefined_id_x; Type: INDEX; Schema: public; Owner: -; Tablespace: 
4389
--
4390

  
4391
CREATE INDEX definedvalue_userdefined_id_x ON definedvalue USING btree (userdefined_id);
4392

  
4393

  
4394
--
4395
-- Name: disturbanceobs_locationevent_id_x; Type: INDEX; Schema: public; Owner: -; Tablespace: 
4396
--
4397

  
4398
CREATE INDEX disturbanceobs_locationevent_id_x ON disturbanceobs USING btree (locationevent_id);
4399

  
4400

  
4401
--
4402
-- Name: fki_aggregateoccurrence_coverindex_id; Type: INDEX; Schema: public; Owner: -; Tablespace: 
4403
--
4404

  
4405
CREATE INDEX fki_aggregateoccurrence_coverindex_id ON aggregateoccurrence USING btree (coverindex_id);
4406

  
4407

  
4408
--
4409
-- Name: fki_aggregateoccurrence_plantobservation_id; Type: INDEX; Schema: public; Owner: -; Tablespace: 
4410
--
4411

  
4412
CREATE INDEX fki_aggregateoccurrence_plantobservation_id ON aggregateoccurrence USING btree (plantobservation_id);
4413

  
4414

  
4415
--
4416
-- Name: fki_aggregateoccurrence_stratum_id; Type: INDEX; Schema: public; Owner: -; Tablespace: 
4417
--
4418

  
4419
CREATE INDEX fki_aggregateoccurrence_stratum_id ON aggregateoccurrence USING btree (stratum_id);
4420

  
4421

  
4422
--
4423
-- Name: fki_locationdetermination_identifier_id; Type: INDEX; Schema: public; Owner: -; Tablespace: 
4424
--
4425

  
4426
CREATE INDEX fki_locationdetermination_identifier_id ON locationdetermination USING btree (identifier_id);
4427

  
4428

  
4429
--
4430
-- Name: fki_locationevent_datasource_id; Type: INDEX; Schema: public; Owner: -; Tablespace: 
4431
--
4432

  
4433
CREATE INDEX fki_locationevent_datasource_id ON locationevent USING btree (datasource_id);
4434

  
4435

  
4436
--
4437
-- Name: fki_locationevent_method_id; Type: INDEX; Schema: public; Owner: -; Tablespace: 
4438
--
4439

  
4440
CREATE INDEX fki_locationevent_method_id ON locationevent USING btree (method_id);
4441

  
4442

  
4443
--
4444
-- Name: fki_locationevent_parent_id; Type: INDEX; Schema: public; Owner: -; Tablespace: 
4445
--
4446

  
4447
CREATE INDEX fki_locationevent_parent_id ON locationevent USING btree (parent_id);
4448

  
4449

  
4450
--
4451
-- Name: fki_method_reference_id; Type: INDEX; Schema: public; Owner: -; Tablespace: 
4452
--
4453

  
4454
CREATE INDEX fki_method_reference_id ON method USING btree (reference_id);
4455

  
4456

  
4457
--
4458
-- Name: fki_method_subplotmethod_id; Type: INDEX; Schema: public; Owner: -; Tablespace: 
4459
--
4460

  
4461
CREATE INDEX fki_method_subplotmethod_id ON method USING btree (subplotmethod_id);
4462

  
4463

  
4464
--
4465
-- Name: fki_methodtaxonclass_method_id; Type: INDEX; Schema: public; Owner: -; Tablespace: 
4466
--
4467

  
4468
CREATE INDEX fki_methodtaxonclass_method_id ON methodtaxonclass USING btree (method_id);
4469

  
4470

  
4471
--
4472
-- Name: fki_methodtaxonclass_plantconcept_id; Type: INDEX; Schema: public; Owner: -; Tablespace: 
4473
--
4474

  
4475
CREATE INDEX fki_methodtaxonclass_plantconcept_id ON methodtaxonclass USING btree (plantconcept_id);
4476

  
4477

  
4478
--
4479
-- Name: fki_namedplace_ancestor_ancestor_id; Type: INDEX; Schema: public; Owner: -; Tablespace: 
4480
--
4481

  
4482
CREATE INDEX fki_namedplace_ancestor_ancestor_id ON namedplace_ancestor USING btree (ancestor_id);
4483

  
4484

  
4485
--
4486
-- Name: fki_namedplace_ancestor_namedplace_id; Type: INDEX; Schema: public; Owner: -; Tablespace: 
4487
--
4488

  
4489
CREATE INDEX fki_namedplace_ancestor_namedplace_id ON namedplace_ancestor USING btree (namedplace_id);
4490

  
4491

  
4492
--
4493
-- Name: fki_namedplace_parent_id; Type: INDEX; Schema: public; Owner: -; Tablespace: 
4494
--
4495

  
4496
CREATE INDEX fki_namedplace_parent_id ON namedplace USING btree (parent_id);
4497

  
4498

  
4499
--
4500
-- Name: fki_plantname_ancestor_ancestor_id; Type: INDEX; Schema: public; Owner: -; Tablespace: 
4501
--
4502

  
4503
CREATE INDEX fki_plantname_ancestor_ancestor_id ON plantname_ancestor USING btree (ancestor_id);
4504

  
4505

  
4506
--
4507
-- Name: fki_plantname_ancestor_plantname_id; Type: INDEX; Schema: public; Owner: -; Tablespace: 
4508
--
4509

  
4510
CREATE INDEX fki_plantname_ancestor_plantname_id ON plantname_ancestor USING btree (plantname_id);
4511

  
4512

  
4513
--
4514
-- Name: fki_plantname_parent_id; Type: INDEX; Schema: public; Owner: -; Tablespace: 
4515
--
4516

  
4517
CREATE INDEX fki_plantname_parent_id ON plantname USING btree (parent_id);
4518

  
4519

  
4520
--
4521
-- Name: fki_plantname_scope_id; Type: INDEX; Schema: public; Owner: -; Tablespace: 
4522
--
4523

  
4524
CREATE INDEX fki_plantname_scope_id ON plantname USING btree (scope_id);
4525

  
4526

  
4527
--
4528
-- Name: fki_plantnamescope_locationevent_id; Type: INDEX; Schema: public; Owner: -; Tablespace: 
4529
--
4530

  
4531
CREATE INDEX fki_plantnamescope_locationevent_id ON plantnamescope USING btree (locationevent_id);
4532

  
4533

  
4534
--
4535
-- Name: fki_plantnamescope_namedplace_id; Type: INDEX; Schema: public; Owner: -; Tablespace: 
4536
--
4537

  
4538
CREATE INDEX fki_plantnamescope_namedplace_id ON plantnamescope USING btree (namedplace_id);
4539

  
4540

  
4541
--
4542
-- Name: fki_plantnamescope_project_id; Type: INDEX; Schema: public; Owner: -; Tablespace: 
4543
--
4544

  
4545
CREATE INDEX fki_plantnamescope_project_id ON plantnamescope USING btree (project_id);
4546

  
4547

  
4548
--
4549
-- Name: fki_plantobservation_plant_id; Type: INDEX; Schema: public; Owner: -; Tablespace: 
4550
--
4551

  
4552
CREATE INDEX fki_plantobservation_plant_id ON plantobservation USING btree (plant_id);
4553

  
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff