Pivka was first mentioned in 1300 as villa Sancti Petri super Piucha ('St. Peter above the Pivka River'), and in 1498 as Sannt Peter. The name of the settlement was changed from Šent Peter na Krasu (literally, 'Saint Peter in the Karst') to Pivka in 1952.[4][5] The name was changed on the basis of the 1948 Law on Names of Settlements and Designations of Squares, Streets, and Buildings as part of efforts by Slovenia's postwar communist government to remove religious elements from toponyms.[6][7][8] Before it replaced the original name of the settlement, the name Pivka originally referred to the Pivka River. This name was first attested in 1300 as Piuca or Piucha (and as Peucha in 1335). The name is derived from the Slovene common noun pivka 'karst sinkhole'.[9]
History
Although the Pivka region has been a strategically important location since ancient times, it became even more important with the construction of the railway from Vienna to Trieste (the Austrian Southern Railway) in 1857 and the railway from Št. Peter na Krasu to Rijeka twenty years later. In 1930, while it was under the Italian control, the strategic hills over the town were heavily fortified and included in the Alpine Wall system of defenses, which stretched from the Bay of Genoa to the Kvarner Gulf. Št. Peter na Krasu and the nearby barracks in Hrastje (now part of the town of Pivka) were one of the strongest points in the eastern section of the Alpine Wall.
^Marinković, Dragan (1991). Abecedni spisak naselja u SFRJ. Promene u sastavu i nazivima naselja za period 1948–1990. Belgrade: Savezni zavod za statistiku. pp. 76, 105.
^Premk, F. 2004. Slovenska versko-krščanska terminologija v zemljepisnih imenih in spremembe za čas 1921–1967/68. Besedoslovne lastnosti slovenskega jezika: slovenska zemljepisna imena. Ljubljana: Slavistično društvo Slovenije, pp. 113–132.
^Urbanc, Mimi, & Matej Gabrovec. 2005. Krajevna imena: poligon za dokazovanje moči in odraz lokalne identitete. Geografski vestnik 77(2): 25–43.
^Snoj, Marko. 2009. Etimološki slovar slovenskih zemljepisnih imen. Ljubljana: Modrijan and Založba ZRC, p. 308.